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

1 answer 111 views
1 answer 191 views
1 answer 197 views
1 answer 201 views
1 answer 221 views
...