西部信托负面:sql 语句问题

来源:百度文库 编辑:查人人中国名人网 时间:2024/05/05 12:21:31
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(*)后边加别名