時(shí)間:2024-03-12 20:34作者:下載吧人氣:25
不用創(chuàng)建函數(shù),直接向表中快速插入1000000條數(shù)據(jù)
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; –查看個(gè)數(shù)據(jù)條數(shù)
網(wǎng)友評(píng)論