MySQL Forums
Forum List  »  Stored Procedures

Problem with user variables
Posted by: tipler
Date: November 07, 2005 01:03PM

Hi ..!

Why my SP not working ..?

CREATE PROCEDURE `intranet`.`p`()
DETERMINISTIC

BEGIN
declare v varchar(50);
set v= '1 month'; # <!--- problem here!!

select date_add('2005-01-10', interval v) as fecha;
END


thk!
Tipler

Options: ReplyQuote


Subject
Views
Written By
Posted
Problem with user variables
2351
November 07, 2005 01:03PM
1648
November 07, 2005 02:19PM


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.