mariadb快速插入100w数据

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;

posted @ 2024-07-03 13:35  还得多长时间·  阅读(2)  评论(0编辑  收藏  举报
//雪花飘落效果