Stembridge,
Thursday, March 21, 2002, 12:05:31 AM, you wrote:
Seoen> The problem isn't inserting table schema/data - I know how to do that.
Seoen> I'm referring to the process of inserting an actual FILE (txt, .bat, .jpg)
Seoen> via command line. And of pulling it out and giving it a name (test.txt).
mysql database_name -e 'Insert into table_name values (1,
load_file("/tmp/loadtest.txt"))'
You can read about usage of MySQL client in the batch mode at:
http://www.mysql.com/doc/B/a/Batch_mode.html
--
For technical support contracts, goto https://order.mysql.com/
This email is sponsored by Ensita.net http://www.ensita.net/
__ ___ ___ ____ __
/ |/ /_ __/ __/ __ \/ / Victoria Reznichenko
/ /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED]
/_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net
<___/ www.mysql.com
---------------------------------------------------------------------
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