疯传文化品牌:sql 语句问题

来源:百度文库 编辑:神马品牌网 时间:2024/05/03 04:42:05
select jjx,count(*) into rjh2 from rjh group by jjx
报“没有为第 2 列(属于 'rjh2')指定列。”

如何指定列?

select jjx,count(*) as counts into rjh2 from rjh group by jjx

count(*)后边加别名