双兵能赢单象双士吗:sql 语句问题

来源:百度文库 编辑:中科新闻网 时间:2024/05/05 01:57:29
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(*)后边加别名