views:

18

answers:

2

i got this error ,

When i execute this below sp snippet ,

DROP PROCEDURE get_DETAIL_STATE//

CREATE PROCEDURE get_DETAIL_STATE(IN stateName VARCHAR(255)) BEGIN sELECT cFname,cLname FROM med_patient WHERE cState = stateName; END DELIMITER ;

alt text

my updated snippet ,

DELIMITER ; CREATE PROCEDURE get_DETAIL_STATE(IN stateName VARCHAR(255)) BEGIN SELECT cFname,cLname FROM med_patient WHERE cState = stateName; END ;

after issue i tried this snippet ,

A: 

It doesn't know what // is, so it considers it a syntax error.

I suspect you forgot to change the delimiter from the default ;.

Michael Madsen
A: 

Have you defined delimiter?

delimiter //
Radek Suski
yes i did...please chk my updated snippet in my post
Bharanikumar