标签: postgresql postgresql-9.4
请在postgresql
FORALL i IN 1..20 INSERT INTO emp2 VALUES (enums(i));
答案 0 :(得分:1)
尝试:
INSERT INTO emp2 SELECT * FROM generate_series(1,20);