MySql OUT Parameter in Create Procedure not compiling -
I'm trying to write a MySQL stored procedures, but I do not get to compile it with multiple OUT parameters I could not find a specific example for the selection from the table that I was able to make and what I was trying to do. Compiler error indicates, "in unchanged, expected;"
And it also says that the first name column has not been declared
. Any help would be appreciated.
(out o_FighterID integer, create out o_FirstName varchar process `SP_SelectAllFighters` (45), out o_MiddleName varchar (45), o_LastName varchar (45) out, o_FullName varchar (155), out o_WeightClass varchar (45), out o_TeamAssociation varchar (45), o_Organization varchar (45)) starting out select id o_FighterID, - CONCAT_WS ( ', first, MiddleName, last name) O_FullName, in o_FirstName in FirstName, LastName in o_MiddleName, o_LastName, o_WeightClass , O_TeamAssociation, In the Organization from TeamAssociation COMPETITOR in o_Organization, MiddleName in WeightClass; Eid
I thought you could do this:
Select o_FighterID = id, o_FullName = CONCAT_WS ('first, middleName, last name), o_FirstName = first, etc. from COMPETITOR;
But after reviewing the MySQL reference, it seems that selection in syntax does this:
SELECT ID, FirstName, ... In o_FighterID, O_FirstName, ... from competitor;
In addition, if you are not declaring your column name, you might think of using table aliens.
Comments
Post a Comment