简体   繁体   中英

Issue with Creating Multi Tables in Mysql Database using PHPMyAdmin

Can you please let me know if it is possible to create multipile tables in mysql database by SQL command in PHPMYADMIN? I already tried this command

CREATE TABLE one (name VARCHAR(30), age INTEGER, height FLOAT, date DATETIME), 
CREATE TABLE two (name VARCHAR(30), age INTEGER, height FLOAT, date DATETIME),
CREATE TABLE three (name VARCHAR(30), age INTEGER, height FLOAT, date DATETIME);

and

CREATE TABLE one (name VARCHAR(30), age INTEGER, height FLOAT, date DATETIME); 
CREATE TABLE two (name VARCHAR(30), age INTEGER, height FLOAT, date DATETIME);
CREATE TABLE three (name VARCHAR(30), age INTEGER, height FLOAT, date DATETIME);

but I am encountering with syntax error message.

Try this:

DROP TABLE IF EXISTS one;
CREATE TABLE one (name VARCHAR(30), age INTEGER, height FLOAT, date DATETIME); 
DROP TABLE IF EXISTS two;
CREATE TABLE two (name VARCHAR(30), age INTEGER, height FLOAT, date DATETIME);
DROP TABLE IF EXISTS three;
CREATE TABLE three (name VARCHAR(30), age INTEGER, height FLOAT, date DATETIME);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM