| |||||||||||
Finding out about columns Posted by enquirer (enquirer), 25 September 2002 How do I find what the columns in a table are called and what type of fields they are?Posted by admin (Graham Ellis), 25 September 2002 SHOW COLUMNS does that for you ... (it's one of those little things that everyone keeps forgetting )Here's an example of it in use, via the mysql client: Code:
Later note - OUCH - that displays nasty. Think I've a problem with cut and paste, tabs and spaces. Try oit on your own MySQL tables, and you'll find it looks very neat! Posted by John_Moylan (jfp), 25 September 2002 does: "desc column_name" do the same thing?jfp Posted by admin (Graham Ellis), 25 September 2002 Basically, yes. I understand that "desc" and "describe" don't add any extra functionallity to what you can do with show. They're just there to be provide something that Oracle users might be familiar with coding.This page is a thread posted to the opentalk forum
at www.opentalk.org.uk and
archived here for reference. To jump to the archive index please
follow this link.
|
| ||||||||||
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho |