string strA= "abc ";
想找到字段中前3个字符等于abc的所有记录;并且只有4个字符.
谢谢!
------解决方案--------------------------------------------------------
比如字段名时myname
select * from mytable where myname like 'abc% '
------解决方案--------------------------------------------------------
单个字符用下划线
select * from mytable where myname like 'abc_ '
------解决方案--------------------------------------------------------
这样写了:
select * from mytable where myname like 'abc_ '