On Fri, 17 Aug 2001, Grigory Bakunov wrote:

> echo "select * from test;"|mysql test;

Actually, for one liner commands you don't have to use echo| to mysql.
You could use the -e command line switch, e.g.:

mysql -e"SELECT * FROM test" test

Here is the definition for the -e switch:

  -e, --execute=...     Execute command and quit. (Output like with --batch)


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to