Search
 
SCRIPT & CODE EXAMPLE
 

SQL

mysql show all tables

show tables;
Comment

how to use a database to see tables mysql

use database_name;
show tables;
describe table_name;
Comment

mysql show table structure

DESCRIBE table_name; # To show table structure...
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 :: search query in mysql 
Sql :: sql left join exists 
Sql :: create table mysql example auto_increment 
Sql :: mysql add 2 hours 
Sql :: oracle user quota on tablespace 
Sql :: how to get table structure in sql server 
Sql :: select sql in descending order 
Sql :: sql last week 
Sql :: the package java.sql is not accessible 
Sql :: v$session table or view does not exist 
Sql :: add postgresql to path 
Sql :: FIND OUT THE NAME HIGHEST SALARY SQL 
Sql :: Oracle Column Names of a table 
Sql :: transalations from sql to Linq count and group by 
Sql :: add timestamp column to existing table t-sql 
Sql :: sql alter table statement 
Sql :: mysql root localhost run 
Sql :: select count of distinct values sql 
Sql :: using distinct count in sqlite3 
Sql :: oracle show execution plan 
Sql :: create a unqie constraint mysql 
Sql :: mysql create table like 
Sql :: sql like 
Sql :: hotw to alter lengh character vayng postgres 
Sql :: sql server current date 
Sql :: oracle invalid table name 
Sql :: mysql procedures 
Sql :: sql rank 
Sql :: can you update NULL in sql 
Sql :: change postgress password 
ADD CONTENT
Topic
Content
Source link
Name
9+9 =