请教各位老师:ado查询中语句这样写where a.TelAndAddress like '%:hyxx%'正确吗?为何没有结果,而a.TelAndAddress=:hyxx,却正常. 下面是全部写法 select a.FullName 会员姓名,a.TelAndAddress 电话 from btype a where a.TelAndAddress like '%:hyxx%'
2楼
引力波 发表于:2013-3-27 14:37:07
使用代码:select a.FullName 会员姓名,a.TelAndAddress 电话 from btype a
where a.TelAndAddress like :hyxx。对变量中hyxx在赋值中进行设置,需要指定数据来源的“字段名”和内容赋值“端口”,在内容的两端加上%即可。