我有一个名为pool_hashrate
的表,其中包含以下列:id
(PK),hashrate
,network_id
(FK),pool_id
(FK)。我想用查询填充它们:
insert into pool_hashrate (
hashrate, network_id, pool_id
)
select
i+i::double precision, i, i
from generate_series(0, 15) AS i;
......但它不起作用。我错过了什么?