Can anyone please tell me where i'm wrong at
CREATE OR REPLACE FUNCTION ttestt (url varchar(255)) RETURNS VOID AS
BEGIN
DECLARE @IMAGE_ID INT
INSERT INTO images(url,ajoute_par) VALUES ("http://www.example.com","3")
SET @IMAGE_ID = SCOPE_IDENTITY()
INSERT INTO Dossier(nom, etat, dossierImage) VALUES ('NameTest', 1, @IMAGE_ID)
END
I'm getting this 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 'FUNCTION ttestt (url varchar(255)) RETURNS VOID AS
BEGIN
DECLARE @IMAGE_ID' at line 1