Search
 
SCRIPT & CODE EXAMPLE
 

SQL

show all table name mysql

SHOW TABLES
Comment

mysql show all tables

show tables;
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 cli show tables

mysql -e 'show tables;' database_name
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

mysql check all tables

mysqlcheck -c mydatabasename -u root -p
Comment

PREVIOUS NEXT
Code Example
Sql :: select first and last row sql 
Sql :: select into temp table 
Sql :: generate a random otp in sql server 
Sql :: sql compare strings 
Sql :: mysqldump ignore table 
Sql :: mysql set last_insert_id 
Sql :: pl/sql procedure example 
Sql :: sequelize migration default value 
Sql :: select last 30 days sql 
Sql :: sql foreign key 
Sql :: postgre sql create table 
Sql :: kill a pid redshift 
Sql :: split string from comma in sql 
Sql :: oracle running queries sql 
Sql :: how to select unique element in sql 
Sql :: oracle list grants on package 
Sql :: install mysql on ubuntu 
Sql :: mysql find duplicates in same table 
Sql :: how to enable extension in postgreSQL 
Sql :: declarative base sqlalchemy 
Sql :: sql running total 
Sql :: mysql like case sensitive 
Sql :: average sql 
Sql :: SQL server how to see user permissions on objects 
Sql :: create table in mysql mariadb primary key foreign key 
Sql :: How to drop procedures in mysql ? 
Sql :: sql server phone constraint 
Sql :: how to join tables in sql 
Sql :: lack create session privilege oracle 
Sql :: mysql set boolean default value 
ADD CONTENT
Topic
Content
Source link
Name
5+7 =