postgreSQL数据库 向表中快速插入1000000条数据

不用创建函数,直接向表中快速插入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;  --查看个数据条数


猜你喜欢

转载自blog.csdn.net/u013992330/article/details/79564349
今日推荐