Search
 
SCRIPT & CODE EXAMPLE
 

SQL

mysql show all tables

show tables;
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 :: create table with primary key auto increment in sql 
Sql :: inner join just one row 
Sql :: create database store 
Sql :: sql server loop over query 
Sql :: oracle limit user tablespace 
Sql :: mysql bigint max value 
Sql :: mysqldump password 
Sql :: mysql order by desc limit 
Sql :: get all table names in sql 
Sql :: oracle cannot access v$session 
Sql :: power query concatenate 
Sql :: mysql with rollup 
Sql :: column names in oracle sql 
Sql :: SQL query to convert DD/MM/YYYY to YYYY-MM-DD 
Sql :: get latest record in sql 
Sql :: script to add new column in table sql 
Sql :: mysql all columns 
Sql :: show tables postgresql 
Sql :: adding indexing on a db model in mysql using sequelize 
Sql :: oracle tablespace datafile max size 
Sql :: mysql alter table set column unique 
Sql :: create table like sql 
Sql :: sql like query 
Sql :: how to alter length character varying postgres 
Sql :: this is incompatible with sql_mode=only_full_group_by laravel 
Sql :: how to add unique key constraint in mysql 
Sql :: mysql update table from another table 
Sql :: sql count having 
Sql :: date formats in sql server 
Sql :: begin transaction in sql 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =