Jump to content

problem creating a stored procedure in mysql 5


fogofogo

Recommended Posts

Hello,

 

I'm trying to create a stored procedure through phpmyadmin and its giving me an error. Heres my query...

 

DROP PROCEDURE IF EXISTS `LoginUser`

GO

 

CREATE PROCEDURE LoginUser(

IN p_Alias varchar(30)

 

)

 

BEGIN

 

SELECT FirstName  FROM users WHERE Alias = p_Alias;

 

END

 

GO

 

Its giving me an error saying ...

 

check the manual that corresponds to your MySQL server version for the right syntax to use near 'GO

 

Can anyone see the obvious error I'm making? Sorry I'm new to this.

 

Cheers

 

 

 

 

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.