
- 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 can we get more details about columns of an existing table than return by MySQL SHOW COLUMNS statement?
If we want to get more details about the column of an existing table then we need to use SHOW FULL COLUMNS statement. Consider the example below in which SHOW FULL COLUMNS statement has been applied on ‘Employee’ table and MySQL returns result set with some extra details like Collation, Privileges, and Comment, about the columns of the table −
mysql> SHOW FULL COLUMNS FROM EMPLOYEE\G *************************** 1. row *************************** Field: Id Type: int(11) Collation: NULL Null: YES Key: Default: NULL Extra: 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.13 sec)
- Related Articles
- How we can get more information about columns of a table than the\ninformation we got by DESCRIBE, EXPLAIN and SHOW COLUMNS MySQL statements?
- How can we get a list of columns in an existing MySQL table?
- Do we have any other statement in MySQL instead of SHOW COLUMNS to get the list of columns in an existing table?
- How can we set PRIMARY KEY on multiple columns of an existing MySQL table?
- How can we add columns with default values to an existing MySQL table?
- How can we add multiple columns, with single command, to an existing MySQL table?
- How can we remove composite PRIMARY KEY constraint applied on multiple columns of an existing MySQL table?
- How to add columns to an existing MySQL table?
- How can we combine the values of two or more columns of MySQL table?
- Return order of MySQL SHOW COLUMNS?
- How can we have multiple virtuals GENERATED COLUMNS in MySQL table with CREATE TABLE statement?
- How can we fetch one or more columns as output from a MySQL table?
- How can we list all the columns of a MySQL view as we can list the columns of a MySQL table?
- How can we delete an existing MySQL table by using PHP script?
- How can I see the CREATE TABLE statement of an existing MySQL table?

Advertisements