Hi Manoj,
You need to add the ; to the end of the select statement, as you would with normal statements. At the moment it thinks the END is part of the select.
This is why the delimiter is set to $$ while you are defining the procedure, so it doesn't accidentally read the semicolons within it to be the end of the procedure.
Hope this helps
Phil
|