这是我输入的@Name 作为“Rupesh's”
我想从表“AppliedPolicies
”表中查找“Rupesh”这样的名称
Select PolicyID, CustomerName, PolicyDesc
From AppliedPolicies
Where PolicyDesc = @Name
请。建议我如何获得所需的结果。
最佳答案
试试这个
Select PolicyID, CustomerName, PolicyDesc
From AppliedPolicies
Where PolicyDesc like '%' + @Name + '%'
关于sql - 如何从表中查找具有单引号字符串的字符串?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22627749/