简体   繁体   中英

MySQL error 1064 on creating a table query

CREATE TABLE `chuchutvlogin`. (
 `id` INT NOT NULL AUTO_INCREMENT , 
 `username` VARCHAR(20) NOT NULL , 
 `gender` CHAR(1) NOT NULL , 
 `email` VARCHAR(50) NOT NULL , 
 `password` VARCHAR(20) NOT NULL , 
 `number` BIGINT(10) NOT NULL , 
  PRIMARY KEY (`id`)
) ENGINE = InnoDB;

what's issue?

i was creating a login databse and error #1064 came syntax error in localhost phpmyadmnin

Fix syntax error in your query, remove dot char after table name:

CREATE TABLE chuchutvlogin (
    id INT NOT NULL AUTO_INCREMENT,
    username VARCHAR(20) NOT NULL,
    gender CHAR(1) NOT NULL,
    email VARCHAR(50) NOT NULL,
    password VARCHAR(20) NOT NULL, 
    number BIGINT(10) NOT NULL,
    PRIMARY KEY (id)
) ENGINE = InnoDB;

dbfiddle

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