你好,我想從一個SELECT查詢插入與選擇
insert into (cmts) stat_alert
values(SELECT stat_alert.cell,stat_alert.cmts,cell_cmt.cmts FROM stat_alert`LEFT OUTER JOIN cell_cmt ON cell_cmt.`cell`=stat_alert.cell WHERE stat_alert.`cell`=cell_cmt.cell)
插入一列中的值我有語法錯誤 誰可以幫我?
語法錯誤:( – user1794019
@ user1794019什麼錯誤?什麼是stat_alert'的'表結構? – Taryn
其作品:)謝謝INSERT INTO stat_alert(CMTS) SELECT cell_cmt.cmts FROM stat_alert LEFT OUTER JOIN cell_cmt ON cell_cmt.'cell' = stat_alert.cell WHERE stat_alert.'cell' = cell_cmt.cell – user1794019