Answers for "how to see table structure in mysql"

SQL
4

mysql show table structure

DESCRIBE table_name; # To show table structure...
Posted by: Guest on May-04-2020
1

show table info mysql

Copied mysql> DESCRIBE pet;
+---------+-------------+------+-----+---------+-------+
| Field   | Type        | Null | Key | Default | Extra |
+---------+-------------+------+-----+---------+-------+
| name    | varchar(20) | YES  |     | NULL    |       |
| owner   | varchar(20) | YES  |     | NULL    |       |
| species | varchar(20) | YES  |     | NULL    |       |
| sex     | char(1)     | YES  |     | NULL    |       |
| birth   | date        | YES  |     | NULL    |       |
| death   | date        | YES  |     | NULL    |       |
+---------+-------------+------+-----+---------+-------+
Posted by: Guest on January-10-2021
0

see the structure of a table mysql

DESCRIBE table;
Posted by: Guest on February-25-2021

Code answers related to "how to see table structure in mysql"

Code answers related to "SQL"

Browse Popular Code Answers by Language