in reply to [MySql] dumping table structure

I'd just use:

$ mysql -u <user> -p -e "DESCRIBE <table>;" <database>

IMHO, that provides even a cleaner/more readable result.

--
b10m

All code is usually tested, but rarely trusted.

Replies are listed 'Best First'.
Re^2: [MySql] dumping table structure
by neniro (Priest) on Jun 17, 2005 at 11:43 UTC
    You're right, it looks better. To my shame I have to admit that I haven't used the mysql-cli often until now. I use the @structure dumped by my snippet in my app, so that it is still usefull to me, but your solution is better in general.

    Thanks you,
    neniro