try.라는 테이블에 대한 트리거를 만들어야합니다. 테이블에 무언가가 입력 된 후 실행 #1064
됩니다.
BEGIN
DECLARE aa decimal(4,3);
DECLARE bb decimal(4,3);
DECLARE cc decimal(4,3);
DECLARE cur1 CURSOR FOR SELECT a,b,c FROM site;
OPEN cur1
FETCH NEXT FROM cur1 into aa,bb,cc;
WHILE FETCH_STATUS=0
BEGIN
PRINT aa
END
END
이 같은 오류를 보여줍니다
MySQL said: #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 'FETCH NEXT FROM cur1
into aa,bb,cc; WHILE FETCH_STATUS=0 BEGIN PRINT aa END ' at line 7
나는 촉발하는 초보자입니다. 도와주세요 ... 감사합니다
MySQL said: #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 'BEGIN PRINT aa; END END' at line 9