CREATE table docs_info_weibo as select id, userId as wb_id, createdAt as pubdate, content, url, author as bloger, location as address, reportsCount as forwarding, commentsCount as COMMENT from docs_info where mediatype ='weibo'
语法:create table 新表表名 as select * from 旧表表名;
as后面不加括号
看了你两个问题 —— 你解决问题的思路不太正确。不要为了问题而问题,合理选择工具,合理利用工具。
你这也太抽象了吧