我使用perfect
SQLite驱动程序和StORM作为连接器。我可以一一保存(创建)多行。为了让它更快,我想一次创建多行,我该怎么做?
1 回答
0
SQLite-StORM
从完美的源代码来看Perfect-SQLite
- 目前似乎没有逻辑来处理多行插入语句。像这样抛出原始语句似乎是目前唯一的方法perfect
。
INSERT INTO notifications (id, text, date, isRead)
VALUES
('7888968F-7817-4386-BAD3-20094A10A0EF', 'this is notification 1', 10000, "true"),
('C161335B-865D-42F8-9468-5942F4579AE5', 'this is notification 2', 20000, "true"),
('527F425A-618A-4C92-9B12-96B781F54819', 'this is notification 3', 30000, "false"),
('76AC88BA-304B-45D4-853B-DE482B1D1916', 'this is notification 4', 40000, "true"),
于 2017-03-24T13:58:32.410 回答