mysql show create table
snippet in sql

show table mysql

user3621

# First, select your database
USE yourDb;

# Then, simply
SHOW TABLES;

mysql show create table

user412

Copied mysql> SHOW CREATE TABLE t\G
*************************** 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

get create table query existing table mysql

user9804

SHOW CREATE TABLE tablename