insert into table 插入多条数据
2017-05-10 11:42
204 查看
insert into table 插入多条数据
方法1:insert into `ttt`
select '001','语文' union all
select '002','数学' union all
select '003','英语';
方法2:
INSERT INTO tab_comp VALUES(item1, price1, qty1),
(item2, price2, qty2),
(item3, price3, qty3);
方法3:
INSERT INTO tab_comp(item1, price1, qty1) SELECT item1, price1, qty1 FROM tab_cc;
相关文章推荐
- insert into table 插入多条数据
- insert into table 插入多条数据
- insert into table 插入多条数据
- insert into table 插入多条数据
- insert into table 插入多条数据
- 求救!用Access数据库插入数据,INSERT INTO语句总是出现错误,但同样的语句格式,用SQL Server 2000数据库,不出现错误!
- 批量更新数据(batches update )插入数据(batches insert)
- 关于ibatis insert 返回值为 null的研究----得到插入数据的逐渐值
- 使用REVERSE INDEX改善大规模数据插入【IMPROVE INSERT STATEMENT USING REVERSE INDEX】 推荐
- 用一条insert 插入多行数据的方法
- 如何快速生成Insert数据插入语句?
- 把一个表的数据插入到另一个表:INSERT INTO SELECT / SELECT INTO
- 数据库insert插入多行数据
- Insert语句插入多行数据
- oracle触发器,insert时数据插入另一个表中
- SQL 语句 insert 插入数据
- insert into select 批量插入数据
- mysql 插入多条数据如何使用INSERT插入多条记录
- 将表数据生成Insert脚本 比较好用的生成插入语句的SQL脚本
- 从一个表读取数据插入到另一个表中(INSERT INTO)