Jump to content

Create table syntax error


miseleigh

Recommended Posts

We're porting over to MySQL from MSSQL, and while trying to create the tables in our new MySQL DB we're getting a syntax error that we can't find.

 

CREATE TABLE `makem`.`Clients` (
  `cl_ID` INTEGER UNSIGNED NOT NULL,
  `cl_username` VARCHAR NOT NULL,
  `cl_password` VARCHAR NOT NULL,
  `cl_challenge` TINYINT NOT NULL DEFAULT 0,
  `cl_answer` VARCHAR DEFAULT NULL,
  `cl_name` VARCHAR DEFAULT NULL,
  `cl_contact` VARCHAR DEFAULT NULL,
  `cl_phone` VARCHAR DEFAULT NULL,
  `cl_email` VARCHAR DEFAULT NULL
)
CHARACTER SET utf8;

 

It says there's a syntax error near 'NOT NULL'.  If anyone can spot it, please let me know so I can fix it and make my table.  Thanks!

Link to comment
https://forums.phpfreaks.com/topic/115108-create-table-syntax-error/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.