I keep getting this error. What am I doing wrong? here is the code;
CREATE TABLE member(
MEM_ID BIGINT(10) PRIMARY KEY
);
Thanks
I keep getting this error. What am I doing wrong? here is the code;
CREATE TABLE member(
MEM_ID BIGINT(10) PRIMARY KEY
);
Thanks
ERROR 1064 (42000) means syntax error. So something is wrong in the definition.
members
. CREATE TABLE members(
MEM_ID INT UNSIGNED NOT NULL AUTO_INCREMENT,
PRIMARY KEY(MEM_ID)
);
member
is a reserved word in MySQL. You need to either quote it with backticks, or better yet change the name of your table to something that is not reserved.
-- possible
CREATE TABLE `member`(MEM_ID BIGINT(10) PRIMARY KEY);
-- better
CREATE TABLE mymember(MEM_ID BIGINT(10) PRIMARY KEY);