批量生成数据

语法代码:

insert into 表名(列名1,列名2,列名3) select 值1,值2,值3 from generate_series(开始编号,结束编号)

调用例子:

insert into read_sight_experience_card(code,package_code,billing_code,pid,issue_time,deadline_time,remark) select random_string(16),'VSW5XKBNA2','wx_month_IwYMxgGlov',5631,now(),'2020-10-11 23:59:59.999','测试数据' from generate_series(1,1000)

你可能感兴趣的:(批量生成数据)