MySQL Forums
Forum List  »  Stored Procedures

Why this error???
Posted by: Jaime López
Date: September 26, 2005 03:59PM

Hi,

I create this Stored Procedure:


CREATE PROCEDURE sp_Foro_ConversacionSelectByCodigo(
pCodigo int
)
SELECT
CodConversacion,
Titulo
FROM
tbConversacion
WHERE
CodConversacion = pCodigo;



When I try to edit it in MySQL Query Browser (Right click over stored procedure and select Edit Procedure option) appears this code:


DELIMITER $$

DROP PROCEDURE IF EXISTS `foro`.`sp_Foro_ConversacionSelectByCodigo`$$
CREATE PROCEDURE `foro`.`sp_Foro_ConversacionSelectByCodigo`(
pCodigo int
)
SELECT
CodConversacion,
Titulo
FROM
tbConversacion
WHERE
CodConversacion = @Codigo$$

DELIMITER ;



And if I execute this code, it returns this message:


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 'DELIMITER $$

DROP PROCEDURE IF EXISTS `foro`.`sp_Foro_ConversacionSelectByCod`at line 1

Error number 1064.



My Server Version is 5.0.12-beta-nt. Server is running over Windows XP SP1 and AMD processor. Also, it happens the same over other AMD processor but more powerful.

Can anyone say to me why it happens????

Thanks in advance.

Options: ReplyQuote


Subject
Views
Written By
Posted
Why this error???
2716
September 26, 2005 03:59PM
1995
September 26, 2005 08:40PM
1911
September 27, 2005 12:45AM
1849
September 28, 2005 09:52AM
1935
September 29, 2005 12:42PM
1785
September 30, 2005 03:59AM
2099
September 30, 2005 05:51AM
1798
October 02, 2005 04:04PM


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.