Search
 
SCRIPT & CODE EXAMPLE
 

SQL

mysql show all tables

show tables;
Comment

mysql show table structure

DESCRIBE table_name; # To show table structure...
Comment

mysql show table fields

DESCRIBE my_table;
Comment

mysql show all table from database

use database_name;
show tables;
Code language: SQL (Structured Query Language) (sql)
Comment

mysql show tables

mysql -e 'show tables;' database_name
Comment

view table mysql

DESCRIBE table_name; /* List all columns of a database's table*/
Comment

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    |       |
+---------+-------------+------+-----+---------+-------+
Comment

show table mysql

# First, select your database
USE yourDb;

# Then, simply
SHOW TABLES;
Comment

PREVIOUS NEXT
Code Example
Sql :: sql server convert to guid 
Sql :: how to run a function in sql 
Sql :: postgres recursive function 
Sql :: to_char oracle 
Sql :: nvl in oracle 
Sql :: ON DUPLICATE KEY UPDATE for postgres 
Sql :: mysql_num_fields in mysqli 
Sql :: sql online compiler 
Sql :: postgresql must appear in the GROUP BY clause or be used in an aggregate function 
Sql :: postgres default value 
Sql :: select true if exists on another table or false sqlserver 
Sql :: sql use not in 
Sql :: oracle select invalid views 
Sql :: ORA-01090: shutdown in progress - connection is not permitted 
Sql :: delete from inner join sql 
Sql :: try catch sql 
Sql :: checking data type in sql server 
Sql :: find log file postgresql linux 
Sql :: sql select all records from all tables where not empty 
Sql :: SQL print multiple variable 
Sql :: postgres extract date from timestamp 
Sql :: how to join three tables in sql using joins 
Sql :: sql datum formatieren 
Sql :: how to delete database in mysql 
Sql :: count in sql 
Sql :: android sqlite query join 
Sql :: sqrt(i) 
Sql :: mariadb create index if not exists 
Sql :: export mysql database command line 
Sql :: how to update sql server version 
ADD CONTENT
Topic
Content
Source link
Name
1+9 =