27,579
社区成员
发帖
与我相关
我的任务
分享
create table a (info varchar(20))
insert into a select 'A'
insert into a select 'B'
insert into a select 'A'
insert into a select 'C'
insert into a select 'ff'
insert into a select 'ss'
insert into a select 'tg'
insert into a select 'ff'
insert into a select 'saf'
insert into a select 'tgg'
insert into a select 'dd'
select * into b from (
select info as 'info信息',count(1) as '出现的次数' from a group by info)tp
select * from b
select info,count(1) from tb
group by info