1
我想創建一個觸發器來連接我的表列成一個列,但我找不到錯誤。無法創建一個觸發器來插入連續值
代碼:
create trigger molecule_trigger After insert on molecule
For each row
begin
Update molecule
Set molecule_text= CONCAT(mid,',',ULCHEm_ID,',',IUPAC_name,',',Inchi,',',inchi_key,',',smiles,',',can_smiles,',',Molecular_formula,',',Molecular_weight,',',vendor,',',CAS,',',links,',',image);
end;
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 '' at line 6
解決了我的問題:)感謝您的優秀解釋順便說一句! – 2014-12-09 15:27:14