Answers for "mysql show table info"

SQL
2

show table mysql

# First, select your database
USE yourDb;

# Then, simply
SHOW TABLES;
Posted by: Guest on March-17-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

mysql show table info

-- Select all:

SELECT * FROM Customers;
Posted by: Guest on July-30-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language