MySQL Forums
Forum List  »  Stored Procedures

Re: why DELIMITER $$
Posted by: Roland Bouman
Date: December 27, 2005 03:35AM

Hi,

[I don't think '123' is a valid identifier. Try prefixing it with a letter]

How funny! Look what happens when i paste that:

mysql> delimiter go
mysql> create procedure 123()
-> begin
-> end
-> go
ERROR 1064 (42000): 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 '123()

begin
end' at line 1
mysql> ;
->

You see, my

delimiter go

is processed, you can tell because the next line starts with a mysql> prompt. In your case, the delimiter command does not seem to be processed at all.
Because it is processed in my case, the 'go' after the end delimits the proc, and the mysql gives us an error due to the invalid procname (when i make it a valid name, the proc is created).

I am at a total loss as to why your mysql command line client does not process the delimiter command.

Have you tried this in the query browser?

Options: ReplyQuote


Subject
Views
Written By
Posted
2777
December 14, 2005 06:28AM
1639
December 15, 2005 04:10AM
1416
December 15, 2005 03:21PM
1594
December 15, 2005 04:38PM
1549
December 27, 2005 02:58AM
Re: why DELIMITER $$
1652
December 27, 2005 03:35AM
1536
December 27, 2005 04:06AM
1462
December 27, 2005 01:15PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.