精确查询小弟有困惑模糊查询:like %+ks+%怎么改成精确查询?[解决办法] + ks + [解决办法]like
精确查询
小弟有困惑
模糊查询:like '%"+ks+"%'
怎么改成精确查询?
[解决办法]
"='" + ks + "'"
[解决办法]
like '"+ks+"' 或 ='"+ks+"'
[解决办法]
string sql="select * from table where ksName='"+ ks +"'";
精确查询
小弟有困惑
模糊查询:like '%"+ks+"%'
怎么改成精确查询?
[解决办法]
"='" + ks + "'"
[解决办法]
like '"+ks+"' 或 ='"+ks+"'
[解决办法]
string sql="select * from table where ksName='"+ ks +"'";