How is structure of a table got in MySQL?

Questions by RajivPrasad   answers by RajivPrasad

Showing Answers 1 - 30 of 30 Answers

sampra

  • Feb 20th, 2008
 

To get the structure data type constraint etc just type desc table-name;
It will give you all the information related to that particular table.

  Was this answer useful?  Yes

rockxy1214

  • Feb 20th, 2008
 

ya that's right

desc table is easy to use

Think this way to desc a table,DB has to save the info some where right?
 its the information _schema DB where all the info related to Database or table is stored

internally desc will do the same as the below does

SELECT * FROM information_schema.`COLUMNS` where TABLE_NAME='' and TABLE_SCHEMA='';

trimurthy

  • May 18th, 2012
 

you can also see the structure by using this statement "show create table table_name";

  Was this answer useful?  Yes

Thomas Freiling

  • May 20th, 2016
 

DESCRIBE table_name

  Was this answer useful?  Yes

Rahul

  • Jun 4th, 2016
 

DESC Table_name

  Was this answer useful?  Yes

Bhagya Killi

  • Jun 13th, 2016
 

DESC TABLENAME will give you the structure of table

  Was this answer useful?  Yes

prakash s

  • Nov 20th, 2017
 

describe tablename;

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions