MySQL Forums
Forum List  »  Oracle

procedures
Posted by: arnab maity
Date: January 12, 2005 07:00AM

i was working with sored procedures in mysql and i had a problem while trying to initialise the in parameters of the procedures by using something as "default "as we do it in oracle. THIS IS BELOW CODE IS NOT WORKING.

CREATE PROCEDURE SP_GETADJACENT_AIRPORT(IN IP_AIRPORT_CODE VARCHAR(3),
IN IP_DISTANCE INT(10) DEFAULT 50)
BEGIN
SELECT ADA_ADJACENT_AIRPORT_CODE
FROM T_ADJACENT_AIRPORT
WHERE ADA_AIRPORT_CODE=IP_AIRPORT_CODE
AND DISTANCE<=IP_DISTANCE
ORDER BY DISTANCE;
END;

hope to get some answer as quickly as possible.

Options: ReplyQuote


Subject
Views
Written By
Posted
procedures
2955
January 12, 2005 07:00AM


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.