Answers for "mysql show table data"

SQL
15

mysql show tables in database

show tables;
Posted by: Guest on March-19-2020
1

mysql show data from table

mysql> SELECT * FROM [table name];
Posted by: Guest on September-29-2020
1

print all records of table in mysql

SELECT * FROM TABLE_NAME;
OR
SELECT column_name_1, column_name_2 FROM TABLE_NAME;
Posted by: Guest on May-12-2020
2

mysql show table fields

DESCRIBE my_table;
Posted by: Guest on October-25-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

Code answers related to "SQL"

Browse Popular Code Answers by Language