UPDATE my_db_name.xf_post
SET my_db_name.xf_post.message
= REPLACE (my_db_name.xf_post.message ,'[imgXXXXX]',' ')
WHERE my_db_name.xf_post.message like '[img]';
UPDATE my_db_name.xf_post
SET my_db_name.xf_post.message
= REPLACE (my_db_name.xf_post.message ,'[imgXXXXX]',' ')
WHERE my_db_name.xf_post.message like '[img]';