Rutledge, Monday, May 13, 2002, 6:25:42 PM, you wrote: Reoen> Sorry to bother the list with the mundane, but I have searched the Reoen> entire MySQL manual and can't find the answer. Is there a way to output Reoen> the table description (using DESCRIBE) into an OUTFILE like you can for Reoen> SELECT query statements? Thanks! Aaron
1. You can use mysqldump with "--no-data" option mysqldump --no-data database_name table_name > /tmp/structure.sql This way gives you dump file with table structure. Afterward you can re-create table using dump file. 2. Use MySQL in batch mode mysql database_name -e "desc table_name" > /tmp/desc.sql In this case you get output of the DESCRIBE statement in the file. -- For technical support contracts, goto https://order.mysql.com/?ref=ensita 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