Answer the question
In order to leave comments, you need to log in
Sql query to rename table?
In general, it is necessary to change the link from http to https in all cells. I used to download the database, open it in the sublime, do replace all, and upload it back. But now on the phone.
In general throw sql pls.
Answer the question
In order to leave comments, you need to log in
UPDATE table SET url = REPLACE(url, 'http://', 'https://')
select concat(
'UPDATE table_name SET ',
column_name,
' = REPLACE(', column_name, ', ''http://'', ''https://'');')
from information_schema.columns
where table_name = 'my_table';
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question