62,041
社区成员
发帖
与我相关
我的任务
分享
"select * from Insider where ID like '%[" + txtNumber.Text + "]%'"
这样写查询整条就查不出来,如果是查询 L-0 这样还会报错,求教怎么写查询语句?"select * from Insider where ID like '%" + txtNumber.Text.Replace("[", "[[]") + "%'"
--> 测试数据: s
create table s(ee varchar(11))
insert into s
select '[苏]BL-021A' union all
select '['
select * from s where ee like '%a[%a]%' escape 'a'