合肥市水费户号查询:ASP中字符串的截取问题?

来源:百度文库 编辑:查人人中国名人网 时间:2024/04/28 04:18:50
Sql= "Select * From User where SmallName like '%"&TypeID&"%'"
查找SmallName这个字段,这里面的数据是一个字符串,我想精确查找,就是把这个字符串分别输出来查找。
比如:
Sql= "Select * From User where SmallName ='"&TypeID&"'"

Sql= "Select * From User where SmallName(467,480,473,485)='"&TypeID&"'"(485)
怎么才能实现?
有没有更精确一点的。
BigSQL= "Select * From user where f011='"&SmallName&"'"
这种最好。

特别特别的急!!!!

sql="select * from user where PATINDEX('%"& typeid &"%', samllname)<>0"