使用方法
后台-系统-备份与恢复数据-执行SQL语句
UPDATE phome_ecms_newsJOIN phome_ecms_news_data_1ON phome_ecms_news.id = phome_ecms_news_data_1.idSET phome_ecms_news.titlepic = (select reverse(substring(reverse(substring_index(substring(newstext,locate('src=',newstext)+6),'"',1)),2,255)) from phome_ecms_news_data_1 where id=phome_ecms_news.id)WHERE phome_ecms_news.titlepic='';
记得修改数据表名
UPDATE phome_ecms_news SET ispic=1 WHERE titlepic<>'';