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
    140
    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
    25,189
    Thanks
    75
    Thanked 4,341 Times in 4,307 Posts
    TYPE= is wrong. It should be ENGINE=
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


  •  

    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
    •