SQL LIKE 转换为 SQL CONTAINS
在以下片段语句中将 SQL Like 转换为 Contains 的正确语法是什么:
WHERE ReferenceNo LIKE '%' + @SearchString+ '%'
我已将其转换为:
WHERE ReferenceNo CONTAINS(VendorName, @SearchString)
VendorName is in the SELECT陈述。
提前致谢。 :)
What is the right syntax for converting a SQL Like to Contains in the following fragment statement:
WHERE ReferenceNo LIKE '%' + @SearchString+ '%'
I have converted it to:
WHERE ReferenceNo CONTAINS(VendorName, @SearchString)
VendorName is in the SELECT statement.
Thanks in advance. :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您只是转换您显示的 WHERE 语句,那么它将是
If you were just converting the WHERE statement you showed, it would be