我想替换列文本测试';在SQL中使用replace命令作为测试
我想使用SQL中的replace命令将列文本测试替换为测试。 我试过使用我想替换列文本测试';在SQL中使用replace命令作为测试,sql,replace,Sql,Replace,我想使用SQL中的replace命令将列文本测试替换为测试。 我试过使用 UPDATE table SET column = REPLACE(column, 'test's', 'test'); 但在测试中,它将“作为额外的引号。要在字符串常量中包含一个引号,只需将其加倍: UPDATE table SET column = REPLACE(column, 'test''s', 'test'); 要在字符串常量中包含单引号,只需将其加倍: UPDATE table
UPDATE table
SET column = REPLACE(column, 'test's', 'test');
但在测试中,它将“作为额外的引号。要在字符串常量中包含一个引号,只需将其加倍:
UPDATE table
SET column = REPLACE(column, 'test''s', 'test');
要在字符串常量中包含单引号,只需将其加倍:
UPDATE table
SET column = REPLACE(column, 'test''s', 'test');
试试这个
UPDATE table
SET column = REPLACE(column, 'test''s', 'test');
或
或
试试这个
UPDATE table
SET column = REPLACE(column, 'test''s', 'test');
或
或