
March 28th, 2000, 10:18 AM
|
|
Gödelian monster
|
|
Join Date: Jul 1999
Location: Central Florida, USA
|
|
Assuming your database is located on a Unix system, put your query commands in an external text file, and run the Mysql shell non-interactively (you pipe your commands in, and pipe the putput out), in which case you can pipe the output to any text file you want. For example the following command would be run from the standard command shell, not from the mysql command shell.
bash$ mysql database_name < script.sql > output.tab
Then mysql would run the query in script.sql, and output the results to output.tab, which would be delimited by whatever options you choose in your sql script.
See http://web.mysql.com/Manual_chapter...ools.html#mysql
|