I want to insert informations from carti into domeniu but i get an error message.
CREATE TRIGGER trigger_UpdateItemDetails ON carti
FOR INSERT AS
BEGIN
INSERT INTO
domeniu
(
cod_d,
materia,
result
)
SELECT
id
domeniu
nr_exemplare
FROM
carti
END
The error message: #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 'ON result FOR INSERT AS BEGIN INSERT INTO domeniu ( ' at line 1