How do I list all the columns in a table?

MattGrommes picture MattGrommes · Oct 16, 2009 · Viewed 819k times · Source

For the various popular database systems, how do you list all the columns in a table?

Answer

dave picture dave · Oct 16, 2009

For MySQL, use:

DESCRIBE name_of_table;

This also works for Oracle as long as you are using SQL*Plus, or Oracle's SQL Developer.