Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: SQL error

  1. #1
    Regular Coder
    Join Date
    Jul 2011
    Posts
    141
    Thanks
    8
    Thanked 0 Times in 0 Posts

    SQL error

    Here is my SQL create query, im getting a MySQL syntax error at line 8

    Code:
    CREATE TABLE `members` (
      `member_id` int(11) unsigned NOT NULL auto_increment,
      `firstname` varchar(100) default NULL,
      `lastname` varchar(100) default NULL,
      `login` varchar(100) NOT NULL default '',
      `passwd` varchar(32) NOT NULL default '',
      PRIMARY KEY  (`member_id`)
    ) TYPE= MyISAM;
    Last edited by amcf1992; 02-05-2013 at 10:48 PM.

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    29,543
    Thanks
    89
    Thanked 4,934 Times in 4,895 Posts
    TYPE= is wrong. It should be ENGINE=
    Be yourself. No one else is as qualified.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •