从自动完成扩展程序获取文本框中的数据 [英] fro fetch data in textbox by auto complete extender

查看:47
本文介绍了从自动完成扩展程序获取文本框中的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我的表内容如

sony  lcd 24"
sony  lcd 24-a"
sony  lcd 24-b"
sony  lcd 24-c"
sony  lcd 24-d"
sony  lcd 24-e"
sony  lcd 32"
sony  lcd 32-a"
sony  lcd 32-b"
sony  lcd 34"



我在文本框中写,就像在运行时sony 24它使用auto complete extender搜索关于sony 24的所有数据......那么查询是什么


and i write in textbox like at runtime sony 24 thn it search all data regarding sony 24 using auto complete extender......so what is query to be

推荐答案

我写了一个小样本。希望这有帮助



I wrote a small sample. Hope this helps

declare @t table
(
s varchar(50)
)


insert into @t values('sony lcd 24"')
 insert into @t values('sony lcd 24-a"')
 insert into @t values('sony lcd 24-b"')
 insert into @t values('sony lcd 24-c"')
 insert into @t values('sony lcd 24-d"')
 insert into @t values('sony lcd 25-e"')

 select * from @t where s like '%sony%24%'


这篇关于从自动完成扩展程序获取文本框中的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆