views:

45

answers:

2

This is a question I did not find answered in Stack Overflow:

How do I show the schema of a table in a MySQL database?

The answer is to read about the describe command.

+1  A: 
SHOW CREATE TABLE yourTable

or

SHOW COLUMNS FROM yourTable

Bobby

Bobby
+1  A: 
show create table t

or

describe table t

for a nice formated output.

Omry