
- Learn MySQL
- MySQL - Home
- MySQL - Introduction
- MySQL - Installation
- MySQL - Administration
- MySQL - PHP Syntax
- MySQL - Connection
- MySQL - Create Database
- MySQL - Drop Database
- MySQL - Select Database
- MySQL - Data Types
- MySQL - Create Tables
- MySQL - Drop Tables
- MySQL - Insert Query
- MySQL - Select Query
- MySQL - Where Clause
- MySQL - Update Query
- MySQL - Delete Query
- MySQL - Like Clause
- MySQL - Sorting Results
- MySQL - Using Join
- MySQL - NULL Values
- MySQL - Regexps
- MySQL - Transactions
- MySQL - Alter Command
- MySQL - Indexes
- MySQL - Temporary Tables
- MySQL - Clone Tables
- MySQL - Database Info
- MySQL - Using Sequences
- MySQL - Handling Duplicates
- MySQL - SQL Injection
- MySQL - Database Export
- MySQL - Database Import
How we can get more information about columns of a table than the
information we got by DESCRIBE, EXPLAIN and SHOW COLUMNS MySQL statements?
With the statement SHOW FULL COLUMNS, we can get more information about the columns of a table than the information we got by DESCRIBE, EXPLAIN, and SHOW COLUMNS MySQL statements.
Syntax
SHOW FULL COLUMNS from Table_name;
Example
mysql> SHOW FULL COLUMNS FROM EMPLOYEE\G; *************************** 1. row *************************** Field: ID Type: int(11) Collation: NULL Null: NO Key: PRI Default: NULL Extra: auto_increment Privileges: select,insert,update,references Comment: *************************** 2. row *************************** Field: Name Type: varchar(20) Collation: latin1_swedish_ci Null: YES Key: Default: NULL Extra: Privileges: select,insert,update,references Comment: 2 rows in set (0.04 sec)
In the example above, we are using this statement on a table named ‘employee’ and we can observe that we got more information like information about Collation, Privileges, and Comment on the columns of that table. This information was not part of the output of DESCRIBE, EXPLAIN, and SHOW COLUMN statement.
- Related Articles
- How can we get more details about columns of an existing table than return by MySQL SHOW COLUMNS statement?
- How can we list all the columns of a MySQL view as we can list the columns of a MySQL table?
- How can we combine the values of two or more columns of MySQL table?
- How can we get a list of columns in an existing MySQL table?
- How can we fetch one or more columns as output from a MySQL table?
- How can we add values into the columns of a MySQL table?
- How can I get the information about a particular column of a table by MySQL DESCRIBE statement?
- How can we combine values of two or more columns of MySQL table and get that value in a single column?
- How can we set PRIMARY KEY on multiple columns of a MySQL table?
- How can we alter table to add MySQL virtual GENERATED COLUMNS?
- How can we alter table to add MySQL stored GENERATED COLUMNS?
- Do we have any other statement in MySQL instead of SHOW COLUMNS to get the list of columns in an existing table?
- How can I get the list of columns from a table in the other database than we are currently using?
- How can I get the information about a particular column of a table by MySQL EXPLAIN statement?\nEXPLAIN statement?
- How can we create and use ENUM columns in MySQL?

Advertisements