我只想使用Java将此查询的结果集复制到另一个表中:
select basescore, count(*) from log
group by basescore ;;;;;suppose________INTO log2 FROM log
我已经尝试了很多,但它给了我错误,任何人都可以帮助。提前谢谢!
答案 0 :(得分:1)
尝试这种方式:
select basescore, count(*) cnt
into log2
from log
group by basescore
答案 1 :(得分:0)
你不需要java。您可以在一个查询中执行此操作
insert into log2 (score_column, count_column)
select basescore, count(*)
from log
group by basescore