我想從我的table_name中刪除column_content的所有鏈接。 鏈接看起來像:SQL查找並替換列中的文本
<a style="text-decoration:none" href="/index.php?o=oda-res-site">.</a>
和href="........"
是每條記錄不同。
你可以幫助一個帶通配符的語句來清除所有鏈接<a ..../a>
?
我嘗試這樣做:
UPDATE MyTable
SET StringColumn = REPLACE (StringColumn, 'SearchForThis', 'ReplaceWithThis')
,但我無法找到正確的通配符來包括 - 如果possible-所有鏈接。
謝謝 我使用phpMyAdmin
您使用的是哪種數據庫管理程序?爲'sql-server','MySQL'或其他任何東西添加一個標籤。 – Smandoli
「column_content」記錄中有哪些信息?可以有多個鏈接? – Smandoli
'regexp_replace()'想到 –