Jump to content

Trigger Syntax Error


DataRater

Recommended Posts

What is wrong with this please. MYSQL 5.0.45-Debian_1ubuntu3.3-log

 

DELIMITER ;

 

DROP TRIGGER IF EXISTS ys.y01;

 

CREATE TRIGGER ys01 AFTER INSERT ON ys

    FOR EACH ROW

    BEGIN

      INSERT INTO action SET

        action_date    = CURDATE(); 

    END;

 

DELIMITER ;

 

0 row(s)affected,1 warning(s))

(0 ms taken)

 

Error Code : 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 5

(0 ms taken)

 

Error Code : 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 'END' at line 1

(0 ms taken)

 

 

Link to comment
https://forums.phpfreaks.com/topic/121845-trigger-syntax-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.