名前の付いたテーブルmy_table
で、テーブルコンテンツ内の特定の文字列に対して検索/置換を実行する必要があります。
String to search for: 'http://123.456.789.000'
String to substitute: 'http://www.mysite.com'
名前の付いたテーブルmy_table
で、テーブルコンテンツ内の特定の文字列に対して検索/置換を実行する必要があります。
String to search for: 'http://123.456.789.000'
String to substitute: 'http://www.mysite.com'
Eek。
UPDATE dbo.my_table
SET col = REPLACE(col, 'http://123.456.789.000', 'http://www.mysite.com')
WHERE col LIKE '%http://123.456.789.000%';
こんなに簡単でしょうか?
UPDATE my_table
SET Field1 = 'http://www.mysite.com'
WHERE Field1 = 'http://123.456.789.000'
幸運を。