Home Sql Mysql-table Mysql Table Describe



Mysql Table Describe
Posted on: June 12, 2009 at 12:00 AM
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  |     |         |  




					     |
+-------+-------------+------+-----+---------+-------+

Related Tags for Mysql Table Describe:
sqlmysqlctabletutorialriatabexampletoexameildesfrommtresratedescribetorxaxampsatmyllmplstrtutorscrssrithstabablpleplomo


More Tutorials from this section

Ask Questions?    Discuss: Mysql Table Describe   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.