标签:key data info from where oracle str like val
Oracle 用Drapper进行like模糊传参查询需要在参数值前后带%符合
string sqlstr=”select * from tblname where name like :name”;
var paramvalue = string.Format("%{0}%", keyword);
object param = new { name= paramvalue };
var datas = conn.Query<TAXI_INFO>(sqlstr, param);
Oracle 用Drapper进行like模糊传参查询需要在参数值前后带%符合
标签:key data info from where oracle str like val
原文地址:http://www.cnblogs.com/94cool/p/6259915.html