|
sql = "INSERT INTO event_term (EventID,Term,Count,Weight) VALUES('1','酒','7','1006');
INSERT INTO event_term (EventID,Term,Count,Weight)VALUES ('1','酒吧','11','1010');
INSERT INTO event_term(EventID,Term,Count,Weight) VALUES ('1','精彩','2','1001');"
这段string用$this->db->query($sql); 提示
A Database Error Occurred Error Number: 1064
Youhave an error in your SQL syntax; check the manual that corresponds toyour MySQL server version for the right syntax to use near 'INSERT INTOevent_term (EventID,Term,Count,Weight) VALUES ('1','酒吧','11','10' atline 1
INSERT INTO event_term (EventID,Term,Count,Weight) VALUES('1','酒','7','1006');INSERT INTO event_term (EventID,Term,Count,Weight)VALUES ('1','酒吧','11','1010');INSERT INTO event_term(EventID,Term,Count,Weight) VALUES ('1','精彩','2','1001'); |
|