开发者

Check if a value is inside a sql String field with many values

开发者 https://www.devze.com 2023-03-20 13:03 出处:网络
I have a sql field with values like \"test had, that , much never\"; I want to know wether \"had\" is in that list if yes return the whole datarow.

I have a sql field with values like "test had, that , much never";

I want to know wether "had" is in that list if yes return the whole datarow.

There was a sql server function like "I开发者_JAVA百科n" Select value in (fieldname)...

anyone can tell me, thanks :)

p.s. dont want to use the "like" which is slow.


If you don't want to use LIKE consider Full Text Indexing and the CONTAINS statement instead.

0

精彩评论

暂无评论...
验证码 换一张
取 消