看板 Database 關於我們 聯絡資訊
dao.query("insert into SubscribeNodeHeartbeat (hostname, subscriber_no,\ interval, event_callback) select '%s', subscriber_no, '%s', '%s' from \ Subscribers where subscriber_name = '%s' AND ipv4 = '%s' AND port = '%s';" \ %(hostname, interval, event_callback, subscriber_name, ipv4, port)) 我已經被這一行看似普通,卻一直insert不進去的窘境困擾很久。 他一直回我說syntax error,但我真的看不出來... 內容如下 (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'interval, event_callback) values ('TP1AA0101', 1, 3, '/Event')' at line 1") 想請問各位,我哪個有寫錯了? 拜託了。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 60.250.129.63