您好,欢迎访问一九零五行业门户网

ACCESS 通配符问题

今天做了个小练习碰到一个 问题 如下 在access里面 *代表任意多个字符 所以我用.net 做程序的时候这么写 string strsql=select * from infor where types like '*52*' 然后用.net执行这句sql 语句结果不行! 我有分别试了下面两句还是不行。 string strsql=@
今天做了个小练习碰到一个问题如下
在access里面 *代表任意多个字符
所以我用.net 做程序的时候这么写
string strsql=select * from infor where types like '*52*'
然后用.net执行这句sql 语句结果不行!
我有分别试了下面两句还是不行。
string strsql=@select * from infor where types like '*52*'
string strsql=select * from infor where types like '%52%'
最后我用了
string strsql=@select * from infor where types like '%52%'
我想问问既然在access里面 可以用* 匹配符,为什么.net这么写(第一条,第三条)招不到数据,反而第最后条能找到数据?
其它类似信息

推荐信息