MySQL Forums
Forum List  »  General

Re: Passing variable to SQL script
Posted by: Kay Zhang
Date: July 23, 2007 06:56AM

Do like this, you should refer the variable as @1 but not &1 in the run.sql

mysql -uuser-ppw -e "set @1:='2007-06-28'; source run.sql"

Options: ReplyQuote

Written By
Re: Passing variable to SQL script
July 23, 2007 06:56AM

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.