MySQL Forums :: Stored Procedures :: passing a table as a INPUT parameter to a stored procedure


Advanced Search

Re: passing a table as a INPUT parameter to a stored procedure
Posted by: Peter Brawley ()
Date: June 18, 2016 11:14AM

> mysql> call dyn_sql(SOURCE, temp_table,123,sjdladj);

source, temp_table and sjdladj are unquoted strings, which tells MySQL to treat them as identifiers, which it can't since they have no context. If you mean to send them in as string constants, you need to quote them.

After executig a repared stmt, you need to call Drop Prepare.

Options: ReplyQuote


Subject Views Written By Posted
passing a table as a INPUT parameter to a stored procedure 3577 B Aneja 06/17/2016 02:18AM
Re: passing a table as a INPUT parameter to a stored procedure 434 Peter Brawley 06/17/2016 05:38AM
Re: passing a table as a INPUT parameter to a stored procedure 398 B Aneja 06/17/2016 01:40PM
Re: passing a table as a INPUT parameter to a stored procedure 370 Peter Brawley 06/17/2016 02:56PM
Re: passing a table as a INPUT parameter to a stored procedure 367 B Aneja 06/17/2016 03:53PM
Re: passing a table as a INPUT parameter to a stored procedure 367 B Aneja 06/17/2016 07:28PM
Re: passing a table as a INPUT parameter to a stored procedure 375 Peter Brawley 06/18/2016 11:14AM
Re: passing a table as a INPUT parameter to a stored procedure 359 Rick James 07/09/2016 10:57PM


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.