Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: [MySql] dumping table structure

by b10m (Vicar)
on Jun 17, 2005 at 11:13 UTC ( [id://467658]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://467658]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-03-29 02:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found