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

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…

How to implement A2F using Own Development in NodeJS in a Scriptcase application

A2F using Own Development in NodeJS A2F: In a previous article, we talked about Swivel as an extern...

Specialists or generalists, who gets a better advantage by using Scriptcase?

Hey there! Today  we will figure what are the ideal profiles for those who wish to take advantage o...

Disabling autofill and autocomplete Chrome browser in login screens

Hello, here I want to show an alternative to disable the autofill and autocomplete of the chrome bro...

Comment this post

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 sales@scriptcase.net. Learn more about our Privacy Police.