MySQL Forums
Forum List  »  Newbie

Re: Call to mysql procedure fails with error.
Posted by: pandu hondu
Date: November 22, 2016 09:18AM

Thanks for that Peter. I did changed ' to " and it worked like a charm. Do I have to still use PREPARE statement ? also is that best practice?

From:
myvar=$(mysql -q mydb -uuser --skip-column-names --execute='call delete_table_incrementally(batchsize)')

To:
myvar=$(mysql -q mydb -uuser --skip-column-names --execute="call delete_table_incrementally(batchsize)")

Waiting for your advice.

Thanks

Options: ReplyQuote


Subject
Written By
Posted
Re: Call to mysql procedure fails with error.
November 22, 2016 09:18AM


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.