Атаман Posted February 12, 2014 Share Posted February 12, 2014 Добрый день, перенес форум в под папку /forums Помогите составить SQL запрос для массовой замены ссылки, а то в постах битые ссылки на картинки галереи. Было: http://сайт.ru/uploads/gallery/Стало:http://сайт.ru/forums/uploads/gallery/ Хочу запросы выполнять по 1, правильно ли я составил запросы? UPDATE ibf_blog_entries SET entry = REPLACE(entry,'старый текст','новый текст'); UPDATE ibf_blog_entries SET entry_short = REPLACE(entry_short,'старый текст','новый текст'); UPDATE ibf_blog_lastinfo SET blog_last_entry_excerpt = REPLACE(blog_last_entry_excerpt,'старый текст','новый текст'); UPDATE ibf_blog_rsscache SET rsscache_feed = REPLACE(rsscache_feed ,'старый текст','новый текст'); UPDATE ibf_ccs_custom_database_1 SET field_3 = REPLACE(field_3,'старый текст','новый текст'); UPDATE ibf_ccs_database_revisions SET revision_data = REPLACE(revision_data,'старый текст','новый текст'); UPDATE ibf_ccs_revisions SET revision_content = REPLACE(revision_content,'старый текст','новый текст'); UPDATE ibf_content_cache_posts SET cache_content = REPLACE(cache_content,'старый текст','новый текст'); UPDATE ibf_inline_notifications SET notify_text = REPLACE(notify_text,'старый текст','новый текст'); UPDATE ibf_posts SET post = REPLACE(post,'старый текст','новый текст'); Link to comment Share on other sites More sharing options...
siv1987 Posted February 12, 2014 Share Posted February 12, 2014 Все правильно 1 Link to comment Share on other sites More sharing options...
Атаман Posted February 12, 2014 Author Share Posted February 12, 2014 Спасибо. Поправил первый пост, забыл про RSS блога. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now