Answers for "get create table statement mysql"

SQL
0

how to create a table in mysql

-- 'CREATE TABLE' followed by the name of the table. 
-- In round brackets, define the columns.
CREATE TABLE `test_table` 
(
  id INT(10) PRIMARY KEY,			
  username VARCHAR(50) NOT NULL
);
Posted by: Guest on February-18-2020
0

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
Posted by: Guest on July-16-2020

Code answers related to "get create table statement mysql"

Code answers related to "SQL"

Browse Popular Code Answers by Language