Re: sqlplus vs mysql command line tool
Scott,
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? --
http://www.mysql.com/certification/
--
Subject
Views
Written By
Posted
27808
June 29, 2004 01:45AM
Re: sqlplus vs mysql command line tool
6649
June 29, 2004 02:39AM
5455
July 19, 2004 11:22AM
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.