Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: [MySql] dumping table structure

by b10m (Vicar)
on Jun 17, 2005 at 11:13 UTC ( #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? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2023-01-31 13:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?