How to replace http:// to https:// in MySQL with SQL

2 Answers

0 votes
UPDATE table_name
     SET url = REPLACE(url, 'http://', 'https://')
     WHERE url LIKE 'http://%';

 



answered Jan 9, 2023 by avibootz
0 votes
UPDATE table_name
     SET url = REPLACE(url, 'http://', 'https://')
     WHERE url LIKE '%http://%';

 



answered Jan 9, 2023 by avibootz

Related questions

...