Home Sql Mysql-table Mysql Table Describe
Questions:Ask|Latest


 
 

Share on Google+Share on Google+

Mysql Table Describe

Advertisement
Mysql Table Describe is used to describe the Fieldtype, Datatype, Null and Key etc of the table.

Mysql Table Describe

     

Mysql Table Describe is used to describe the Fieldtype, Datatype, Null and Key etc of the table.

Understand with Example

The Tutorial illustrate an example from 'Mysql Table Describe'. To understand the example we create a table 'Stu' with required fieldnames and datatypes respectively.

Create table:

Create Table Stu(Id int,Name Varchar(15));

Query:

Desc : The Query below shows you the Fieldnames, Datatypes, Null etc of the table Stu.

Desc Stu;

Result

+-------+-------------+------+-----+---------+-------+
| Field | Type        | Null | Key | Default | Extra |
+-------+-------------+------+-----+---------+-------+
| Id    | int(11)     | YES  |     |         |       |
| Name  | varchar(15) | YES  |     |         |       |
+-------+-------------+------+-----+---------+-------+
Advertisement

Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: June 12, 2009

Ask Questions?    Discuss: Mysql Table Describe   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments
DMCA.com