In MySQL using a simple command is possible to have important information from a table, the DESCRIBE command is used to return data as columns and type of data they store.

To use the DESCRIBE command just use the following syntax:

DESCRIBE [Table Name]

Let’s use a practical example using a table called tbl_product to exemplify the use of the command.

DESCRIBE tbl_product

At the time this command is executed will be made available the following information:

  • All columns of the table;
  • The data type of each table indicated by the column “Type”;
  • The NULL indicator showing whether or not this field accepts this type of information;
  • If the column is a primary key or not, this information will be shown in the column “PRI”;

In addition to the standard columns with information other columns are displayed as “UNI”, “MUL”, and “DEFAULT”, for example.

Although simple DESCRIBE command is one of the most important features that MySQL offers and so know it is pretty important.


MySQL has gained much market share as well as web development language PHP, learn about MySQL PHP combined with our official site.

You might also like…

SCRIPTCASE: What is VS What is not

What is VS What is not What is ScriptCase? It is a fast development environment with tools that f...

Conversion Process to Scriptcase 9

How to perform the conversion process to Scriptcase 9 For this Guide to perform the conversion proc...

You might also like…

Get new posts, resources, offers and more each week.

We will use the information you provide to update you about our Newsletter and Special Offers. You can unsubscribe any time you want by clinck in a link in the footer of any email you receive from us, or by contacting us at Learn more about our Privacy Police.