sql INSERT INTO - 多个值,多行示例

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sql INSERT INTO - 多个值,多行示例相关的知识,希望对你有一定的参考价值。

-- Add entries to the Camera table if you want it reflected in the dashboard. You will need the modem_id associated with each sn/meid combination 
SET IDENTITY_INSERT camera ON
INSERT INTO camera (camera_id, camera_type_id, modem_id, user_id)
--VALUES (45, 1, 196, 23)
VALUES 
(46, 1, 197, 23), 
(47, 1, 198, 23),
(48, 1, 199, 23),
(49, 1, 200, 23),
(50, 1, 201, 23)
SET IDENTITY_INSERT camera OFF

以上是关于sql INSERT INTO - 多个值,多行示例的主要内容,如果未能解决你的问题,请参考以下文章

使用 INSERT INTO (SQL Server 2005) 插入多个值

将多行插入多个表而不重复“INSERT INTO”

INSERT INTO .. ON DUPLICATE KEY更新多行记录

INSERT INTO .. ON DUPLICATE KEY更新多行记录

入门Mysql命令总结!!!

taradatainsertinto多行数据报错