不用创建函数,直接向表中快速插入1000000条数据
create table tbl_test (id int, info text, c_time timestamp);
insert into tbl_test select generate_series(1,100000),md5(random()::text),clock_timestamp();
select count(id) from tbl_test; --查看个数据条数
最后
以上就是冷酷书本最近收集整理的关于postgreSQL数据库 向表中快速插入1000000条数据的全部内容,更多相关postgreSQL数据库内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复