Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Sql Mysql-example Mysql Describe

Related Tutorials


 
 

Share on Google+Share on Google+

Mysql Describe

Advertisement
Mysql Describe is used to describe the table Field,Type,Null etc attribute.

Mysql Describe

     

Mysql Describe is used to describe the table Field,Type,Null etc attribute .

Understand with Example

The Tutorial elaborate an example from 'Mysql Describe'.To understand this example we create a table 'Stu' with required fieldname and datatype respectively.

 

 

 

 

Create table

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

Query

The Query below  Desc keyword is used to describe the fieldname,Type,Null etc of the table.

Desc Stu;

Result

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

If you enjoyed this post then why not add us on Google+? Add us to your Circles



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: January 17, 2009

Related Tutorials

Discuss: Mysql Describe  

Post your Comment


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