mysql 快速插入(insert)多条记录
2008-03-22 14:17
537 查看
方法1:
INSERT INTO table(col_1, col_2,col_3)
VALUES('1','11','111');
INSERT INTO table(col_1, col_2,col_3)
VALUES('2','22','222');
INSERT INTO table(col_1, col_2,col_3)
VALUES('3','33','333');
有没有更快捷的办法呢?答案是有(见方法2)
方法2:
INSERT INTO table(col_1, col_2,col_3)
VALUES('1','11','111'), ('2','22','222'), ('3','33','333');
INSERT INTO table(col_1, col_2,col_3)
VALUES('1','11','111');
INSERT INTO table(col_1, col_2,col_3)
VALUES('2','22','222');
INSERT INTO table(col_1, col_2,col_3)
VALUES('3','33','333');
有没有更快捷的办法呢?答案是有(见方法2)
方法2:
INSERT INTO table(col_1, col_2,col_3)
VALUES('1','11','111'), ('2','22','222'), ('3','33','333');
相关文章推荐
- MySQL使用INSERT插入多条记录, 批量新增数据
- mysql中一条insert语句批量插入多条记录
- mysql 插入多条数据如何使用INSERT插入多条记录
- mysql中一条insert语句批量插入多条记录
- MySQL使用INSERT插入多条记录
- mysql 插入多条数据如何使用INSERT插入多条记录
- MySQL使用INSERT插入多条记录
- mysql中如何使用INSERT一次性插入多条记录
- Mysql使用insert插入多条记录 批量新增数据
- MySQL使用INSERT插入多条记录
- MySQL使用一条INSERT语句插入多条记录
- 一次插入多条记录 [mysql]
- android中SQLite数据库中用insert同时插入多条记录的方法和效率比较
- mysql中插入多条记录-微软批处理
- mysql insert if not exists防止插入重复记录的方法(转)
- MySQL命令insert into:向表中插入数据(记录)
- insert触发器 同时插入多条记录
- MySQL插入数据时,如果记录不存在则insert,如果存在则update
- MySQL 当记录不存在时插入(insert if not exists)
- MySQL 当记录不存在时插入insert if not exists