getSqlPara可以传参sql模板语句么?

                String key="select * from tb_st_user where id=#para(id) ";

Record record=new Record();

record.set("id", "1");

SqlPara sqlpara = Db.getSqlPara(key, record);

Db.find(sqlpara);

                这么写可以么,还时必须传.sql的key


评论区

热门反馈

扫码入社