这个问题一般是在SQL Server中使用【+】运算符连接常量字符串和变量字符串的场景下出现。
解决的方法就是使用内置的concat()函数来进行字符串连接操作。
比如将:
select * from yanggb where name like '%' + :name
替换为:
select * from yanggb where name like concat('%', :name)
这样就解决了报错问题。
"i will grow up alone."
这个问题一般是在SQL Server中使用【+】运算符连接常量字符串和变量字符串的场景下出现。
解决的方法就是使用内置的concat()函数来进行字符串连接操作。
比如将:
select * from yanggb where name like '%' + :name
替换为:
select * from yanggb where name like concat('%', :name)
这样就解决了报错问题。
"i will grow up alone."
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。