複数行一括INSERT
INSERT INTO public.a (b, c) VALUES
('R100001', 'リンゴ'),
('R100002', 'バナナ'),
('R100003', 'ネコ'),
('R100004', 'イヌ');
結果確認
postgres=# select * from public.a;
b | c
---------+--------
R100001 | リンゴ
R100002 | バナナ
R100003 | ネコ
R100004 | イヌ
(4 rows)
参考
MyBatis+Spring Bootで、複数行のinsert(Multi Row Insert)とバッチ更新(Batch Insert)を試す
MyBatisでまとめてinsertする方法
JDBC と MyBatis でバルク・インサート(multi-row vs batch)