MySQL Forums
Forum List  »  Newbie

create table error 1064
Posted by: john chang
Date: October 07, 2022 03:18PM

hi all,

I'm trying to create the following table:

CREATE TABLE `developers` (id int(10) not null auto_increment primary key,
fullName varchar(50) DEFAULT NULL,
gender varchar(10) DEFAULT NULL,
email varchar(50) DEFAULT NULL,
mobile varchar(20) DEFAULT NULL,
address varchar(100) DEFAULT NULL,
city varchar(50) DEFAULT NULL,
state varchar(50) DEFAULT NULL,
created_at timestamp(5) DEFAULT NULL,
updated_at datetime(5) DEFAULT NULL,

);

but am getting the following error:
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')' at line 12

I am not familiar enough with mysql to diagnose the problem myself.
Thank you.

Options: ReplyQuote


Subject
Written By
Posted
create table error 1064
October 07, 2022 03:18PM
October 07, 2022 06:40PM
October 09, 2022 12:08AM
October 09, 2022 12:14AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.