correct mysql syntax error

Posted by user2981651 on Stack Overflow See other posts from Stack Overflow or by user2981651
Published on 2013-11-12T03:49:08Z Indexed on 2013/11/12 3:53 UTC
Read the original article Hit count: 90

Filed under:
|

please could someone tell me the problem with this syntax because mysql 5.5.32 keeps tell me about an error

CREATE TABLE `clients` (
  `ID` tinyint(11) NOT NULL auto_increment,
  `title` varchar(10) NOT NULL default '',

`firstName` varchar(30) NOT NULL default '',

`lastName` varchar(30) NOT NULL default '',

`address1` varchar(100) NOT NULL default '',

`address2` varchar(100) NOT NULL default '',

`town` varchar(100) NOT NULL default '',

`province` varchar(100) NOT NULL default '',

`country` varchar(40) NOT NULL default '',

`postCode` varchar(20) NOT NULL default '',

`telephone` varchar(20) NOT NULL default '',

`email` varchar(100) NOT NULL default '',

`cardNo` varchar(16) NOT NULL default '0000-00-00',

`expiryDate` date NOT NULL default '0000-00-00',

PRIMARY KEY  (`ID`)

) TYPE=MyISAM COMMENT='customer table' AUTO_INCREMENT=1 ;

© Stack Overflow or respective owner

Related posts about mysql

Related posts about sql