MySQL Forums
Forum List  »  Stored Procedures

Re: Simply stored proc works OK but is it correct syntax ?
Posted by: Peter Brawley
Date: September 17, 2016 04:32PM

> Say the crewID was "AB01"

Poor design, atomicity failure. Store the prefix on one column, the numeric part in another.

Till you fix that ...

set @s = concat( "insert into ", 
                 @wagesyear, 
                 " (crewid) values( '", 
                 @crewid, 
                 ", ' )" 
               ); 

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Simply stored proc works OK but is it correct syntax ?
359
September 17, 2016 04:32PM


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.