在MYSQL数据库中,我把用sql语句统计好的数据怎么让他新生成一个数据表(是两张表统计的数据)

帮忙看一下

create table 新表名
as
你的sql语句

你的sql语句中,有字段用函数表示的,必须起别名


creata table 新的表名
as
select a,count(b) as bb from 表名 group by a;


count(b)必须起别名,这里起的是bb

来自:求助得到的回答
温馨提示:答案为网友推荐,仅供参考
相似回答