我有另一種想法,可以比我上次包含的問題給出的解決方案更具性能:solution of question 這是我的建議,但它不起作用!我不能用SELECT INTO MYSQL插入數據到我現有的表中
SELECT
32,
57,
'MVT/15/12/0001',
'BSR/15/12/001',
'S',
'ART_039',
'AAAA',
a.qte_art,
1,
a.qte_art - 1,
'uuuu'
INTO mvt(id_piece, article_id_article, code_mvt, origine_mvt, type_mvt, code_art, des_art, qte_old, qte_mvt, qte_new, link_piece)
FROM article a
WHERE a.id_article = 57
#1327 - Undeclared variable: mvt
請赤我在鏈接的問題,因爲我嘗試這種解決方案的resean是我對MVT表的觸發器
是否MVT表中存在?另外,爲什麼不'insert into'而不是'select into'? – SMA
請在鏈接中提問我的問題,因爲我試過這個解決方案的resean是我有一個觸發器 – isom