我必须将值更改到我的数据库中。其中一个字符串值可以包含 %
符号。
粗略的例子:
UPDATE Mortgage
SET TEXT = 'The interest rate is 7%';
更改未保存在数据库中。如何在 SQL Server 中转义百分比符号
最佳答案
UPDATE Mortgage SET TEXT = 'The interest rate is 7' + CHAR(37);
37 是小数 ASCII code百分比符号。
关于sql - INSERT 中的百分号 (%),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9325507/