问一个很菜的问题。SQL语句中的'Like'在VB中不能用,有没人遇到过这种问题. rst.open "select * from table1 where Name like '%灵%'" 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 "select * from table1 where Name like '%灵%'" if you use SQL Server Accessrst.open "select * from table1 where Name like '*灵*'"sql serverrst.open "select * from table1 where Name like '%灵%'" 在SQL语句中要使用传义符 “*”的转义符为“%”所以你的语句就要写成以上各位所写的样子! rst.open "select * from table1 where Name like '%灵%'" 我用的是access ,但是只能用‘%’,而不能用‘*’;如果是‘?’,请问用什么代替呢? SQL查询结果生成一个ACCESS文件 tmp_hex & &H8000 为什么不行 ? 求教:VB.NET如何根据URL读取网页内容? 一个看似简单的问题 vb中怎么调用.chm帮助文件?? “无法获得连接句柄”怎么办啊 高手多加分 !!!OPENROWSET和BCP问题!!! ActiveSkin控件的使用 如何使用dll中的这个function 如何能将FORM右上角的关闭按钮屏蔽掉,或者不让其显示? 请各位高手帮个忙怎样才能判断是否能与Inteter网通的 为什么我的数据库中a字段+b字段值为0
if you use SQL Server
rst.open "select * from table1 where Name like '*灵*'"sql server
rst.open "select * from table1 where Name like '%灵%'"