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

show table structure mysql console

use DATABASE_NAME;
describe TABLE_NAME;
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

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

mysql show create table

Copied mysql> SHOW CREATE TABLE tG
*************************** 1. row ***************************
       Table: t
Create Table: CREATE TABLE `t` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `s` char(60) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4
Comment

show table mysql

# First, select your database
USE yourDb;

# Then, simply
SHOW TABLES;
Comment

PREVIOUS NEXT
Code Example
Sql :: truncate table postgres 
Sql :: show slave status mysql 
Sql :: spring datasource properties mysql 
Sql :: sql duplicate rows 
Sql :: calculate distance between two latitude longitude postgresql 
Sql :: change role postgres 
Sql :: snap remove mysql workbench 
Sql :: CONCAT_WS() concat function we can use for adds two or more expressions together with a separator or delimeter. 
Sql :: drop view sql 
Sql :: mac install mysql 
Sql :: sql merge 
Sql :: mysql database is not starting in xampp 
Sql :: sqlite data types 
Sql :: mysql show table fields 
Sql :: SQL CREATE UNIQUE INDEX for Unique Values 
Sql :: mysql on update current_timestamp 
Sql :: how to check the mysql version mac 
Sql :: phpmyadmin reset root password 
Sql :: oracle timestamp to date 
Sql :: download mysql 64 bit 
Sql :: sql select where more than one record exists 
Sql :: mysql store ip address 
Sql :: date conversion in mysql column 
Sql :: how to create a sql database 
Sql :: sql change a colum to unique 
Sql :: mysql update from select on same table 
Sql :: oracle number to percentage 
Sql :: drop all tables in azure sql database 
Sql :: mysql money value 
Sql :: SQL Greater Than or Equal to Operator 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =