MySQL Forums
Forum List  »  Oracle

Re: sqlplus vs mysql command line tool
Posted by: Indrek Siitan
Date: June 29, 2004 02:39AM


the MySQL command line tool "mysql" unfortunately is unable to do this on its own at the moment. I'm no shell guru to tell you the exact syntax, but a first thing that pops into my mind would be to run the .sql file through AWK and have that to replace &1/%2, $1/$2 or whatever with the command line parameters, and then feed it to the MySQL client.

| Indrek Siitan, Administrative Coordinator of Support
| MySQL (AB, GmbH, Inc.) ยท Keila, Estonia
| Are you MySQL Certified? --

Options: ReplyQuote

Written By
June 29, 2004 01:45AM
Re: sqlplus vs mysql command line tool
June 29, 2004 02:39AM

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.