Aggro wrote:
Quote:
Ike wrote:
>
Quote:
>I can take data into a database from an sql file with:
>>
>mysql -u USER -p DBNAME < dump.sql
>>
>But how do I send data out of an sql table, to an sql-type text file?
>Don't I simple change the redirection symbol from "less than," to
>"greater to," as follows:
>>
>mysql -u USER -p DBNAME dump.sql
>
>
No, you will use another program for that purpose:
>
mysqldump -u USER -p DBNAME dump.sql
What format do you want the data to be in? do you want something that looks
like the actual insert statement or do you just want the data (delimited or
concatenated...) you have not give us much information to go on.
"mysqldump" is used to extract the database structure as well as the insert
statements for the data in the database - not data only. I find mysqldump to
quite archaic in its implementation. A real database engine that I am familiar
with has the ability to un
again, what do you want to achieve? what is the problem you are trying to solve?
--
Michael Austin.
Database Consultant