2013-12-14 89 views

回答

0

如果你想對付雙引號,我認爲你有2種簡單的選擇:。

1)總結他們在單引號像此:

UPDATE my_table 
SET my_field = "href=\"http://example.com/\"" 
WHERE my_field = "href=\"http:/"; 

UPDATE my_table 
SET my_field = 'href="http://mysite...something/' 
WHERE my_field = 'href="http:/'; 

2)與這樣反斜槓轉義

+0

你們倆都幫我: UPDATE my_table SET my_field = REPLACE(my_field,'href =「/','href =」mysite ... something「)謝謝! – Dan

1
UPDATE table SET column=REPLACE(column,'oldstring','newstring')