테이블 열을 단일 열에 연결하는 트리거를 만들려고하지만 오류를 찾을 수 없습니다.concat 값을 삽입하는 트리거를 만들 수 없습니다.
는코드 : 당신이 당신의 update
문 뒤에 ;
을 begin
와 "여러 문"블록을 시작했지만, 때문에 당신은이 오류가
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
해결 된 내 문제 :) 훌륭한 설명 주셔서 감사합니다 btw! –