sql语句怎么错了? select * from tab where zd like '*a*'目的是选出所有zd字段里面包含a的再现等待 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select * from tab where zd like '%a%'把*改成% select * from tab where zd like '%a%' select * from tab where zd like '?a?' 看看效果 '%' 任意匹配; '_ '单个字符匹配select * from tab where zd like '%a%' 进行左右匹配;select * from tab where zd like '%a' 进行左匹配;select * from tab where zd like 'a%' 进行右匹配;select * from tab where zd like '_a%' 进行第二个字符是a 匹配; 我的做法是:select * from tab where zd like '%'+a+'%' SQL統計數量請教 access数据库时常连接出错 WAP如何判断是移动的手机,还是联通的手机? treeview节点权限分配问题 怎么用ASP.NET添加数据?(用 insert into )吗? 求教高人:问题描叙:客户在线点播我的视频,由于意外网络断了,他下次点播 我要从上次的时间段继续计时。我要怎么做。 关于 <meta> --急-- 登陆后台几分钟就跳转到登陆页面是什么原因 如何使很多按钮中的一个成为默认的按钮,在线等!! 如何执行多条Sql?? 求DATALIST绑定数据表某个字段的代码?
把*改成%
select * from tab where zd like '%a%' 进行左右匹配;select * from tab where zd like '%a' 进行左匹配;select * from tab where zd like 'a%' 进行右匹配;select * from tab where zd like '_a%' 进行第二个字符是a 匹配;
select * from tab where zd like '%'+a+'%'