MySQL Forums
Forum List  »  Stored Procedures

newble ~~help me!!
Posted by: dennis su
Date: December 18, 2006 12:31AM

dear all :
i write a sp but it doesn't work
------------sp begin--------------------------

CREATE PROCEDURE `acm`.`login`( in login varchar(8),in pwd varchar(16))
BEGIN
SELECT A.USER_ID,A.USER_NAME,A.GROUPID,B.ISOFFICER,B.DEPI,B.EMPI FROM CUSER A ,EMPLOYEETB B
WHERE (A.USER_ID=B.USER_ID) AND A.USER_ID=UPPER(LOGIN) AND A.PASSWD=UPPER(PWD)
END

------------sp end-------------------------------
when i stored it
the error message shows <<can't create a procedure from within another stored routine!!>>

may somebody show me how to modify my sp ?? please give a hand!!
thank you all



Edited 1 time(s). Last edit at 12/18/2006 12:55AM by dennis su.

Options: ReplyQuote


Subject
Views
Written By
Posted
newble ~~help me!!
2454
December 18, 2006 12:31AM
1050
December 18, 2006 09:48AM
1207
December 18, 2006 07:43PM
1112
December 19, 2006 12:49AM
1198
December 19, 2006 06:28AM
1106
December 19, 2006 07:55PM


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.