if 문에서 두 번의 실행을 수행 할 수 있기를 원합니다. 내가 마지막 세미콜론에 오류가 점점 오전 :MySQL 여러 if 문 실행
If(condition)
THEN
SET table.column = table1.column;
INSERT INTO errortable (column) VALUES ("Error");
END IF;
이를도 작동하지 않습니다
If(condition)
THEN
SET table.column = table1.column,
INSERT INTO errortable (column) VALUES ("Error");
END IF;
아니다이 :
If(condition)
THEN
SET table.column = table1.column
INSERT INTO errortable (column) VALUES ("Error");
END IF;
감사를 사용하는
오류가 발생하면 도움이 될 것입니다. –
이 스크립트를 어떻게 실행 했습니까? 절차인가요? – Devart
1. 오류는 "Semi colon is unexpected"라인을 따라 발생합니다. 2. phpMyAdmin의 편집기에서 직접 문을 실행했습니다. 3. 본질적으로 그렇습니다. –