Error while creating procedure

This is a discussion on Error while creating procedure within the MySQL Database forums, part of the Database Forums category; Hi, this is Satya here. I'm facing problem while creating a procedure in mysql. I tried all the ways ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 11-09-2007
satyendrakumarpandit@gmail.com
 
Posts: n/a
Default Error while creating procedure

Hi,
this is Satya here. I'm facing problem while creating a procedure in
mysql. I tried all the ways for creating a Procedure in MySql but its
always showing following error

Error: 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 'PROCEDURE a()BEGIN SELECT 'THIS' END
begin
select 'this'
end'

Here one thing is to note that error is being shown always to the
keyword "procedure" where ever server finds the keyword "procedure"
only there it shows the error. If it is in line one it will show error
in line 1 near the keyword 'Procedure' and so on. U can also note the
same thing in the Error I Posted.

See here though I've posted only one type but in all the ways I found
same Error.


Plz send the solution ASAP

Thanks
Satyendra

Reply With Quote
  #2 (permalink)  
Old 11-10-2007
Kees Nuyt
 
Posts: n/a
Default Re: Error while creating procedure

On Thu, 08 Nov 2007 21:50:31 -0800,
satyendrakumarpandit@gmail.com wrote:

>Hi,
> this is Satya here. I'm facing problem while creating a procedure in
>mysql. I tried all the ways for creating a Procedure in MySql but its
>always showing following error
>
> Error: 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 'PROCEDURE a()BEGIN SELECT 'THIS' END
>begin
> select 'this'
>end'
>
>Here one thing is to note that error is being shown always to the
>keyword "procedure" where ever server finds the keyword "procedure"
>only there it shows the error. If it is in line one it will show error
>in line 1 near the keyword 'Procedure' and so on. U can also note the
>same thing in the Error I Posted.
>
>See here though I've posted only one type but in all the ways I found
>same Error.
>
>
>Plz send the solution ASAP
>
>Thanks
>Satyendra


Please show us the statements you are using to define the
procedure. I mean, the complete definition, not just the
procedure body.
--
( Kees
)
c[_] If I'm supposed to live every day like it's my
last, I want a gallon of morphine. (Russ Wallace) (#393)
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:29 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0