在单个交易中插入/更新批量记录的最佳方法是什么?
有没有人有插入/更新json对象的示例存储过程到mysql表中?
与JSON对象一样 - > MySQL表?
答案 0 :(得分:0)
INSERT IGNORE INTO tableName(field1,field2,field3,field4)VALUES('Field1Value1','Field2Value1','Field3Value1','Field4Value1'), ('Field1Value2','Field2Value2','Field3Value2','Field4Value2'), .. .. .. .. , ('Field1ValueN','Field2ValueN','Field3ValueN','Field4ValueN')