Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何用单引号替换双引号:
我试过了:
UPDATE table SET COLUMN=REPLACE(COLUMN,'''',''')
但它没有用。
试试这个:
UPDATE table SET COLUMN=REPLACE(COLUMN,'''''','''')
我们必须转义单引号。如果你想写',你必须写''。有关更多信息,请参阅此。
'
''
您需要转义报价。尝试
UPDATE your_table SET col = REPLACE(col, '''''' ,'''')