在MySQL中,我会使用 & w& P/ `: @. m, z. WINSERT INTO `mytable` (`col1`,`col2`) VALUES (1,'aaa bbb');但这会导致SQLite错误。SQLite什么是正确的语法?% U. E! ?" ~9 c/ [
, K1 {5 f+ T8 c* U解决方案: ; P; r1 S8 f7 H) M/ z5 d: n+ Y
在此之前,我已经回答了这个问题:我能一次吗?SQLite多行插入数据库? 0 R2 J z7 `) K" }要回答您对OMG Ponies请回答: $ i* l. S- E' z2 S9 I$ I从3.7.11版本开始,SQLite确实支持多行插入。·希普(Richard Hipp)评论: 5 V$ n, s- y# W"The new multi-valued insert is merely syntactic suger (sic) for the compound insert. There is no performance advantage one way or the other."