mariadb快速插入100w資料

还得多长时间·發表於2024-07-03

mysql -uroot -p1223456

show databases;
create database people;

use people;

create or replace table people(id int auto_increment primary key,firstname varchar(100),lastname varchar(100));

INSERT INTO people(firstname, lastname) SELECT CONCAT('firstname-',seq),CONCAT('lastname-',seq) FROM seq_1_to_1000000;

相關文章