Welcome Guest, Not a member yet? Register   Sign In
How to Specify InnoDB table type
#4

[eluser]Randy Casburn[/eluser]
[quote author="CW" date="1219267323"]That's what I suspected so I used:

$this->db->query("CREATE TABLE `hello` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(50) NOT NULL default '',
PRIMARY KEY (`id`)
) TYPE=InnoDB AUTO_INCREMENT=1 ");

To get around this.[/quote]

Just to be a nerd, TYPE= is deprecated, ENGINE= is now preferred.

But it won't matter for some time.

Randy


Messages In This Thread
How to Specify InnoDB table type - by El Forum - 08-20-2008, 08:45 AM
How to Specify InnoDB table type - by El Forum - 08-20-2008, 10:01 AM
How to Specify InnoDB table type - by El Forum - 08-20-2008, 10:22 AM
How to Specify InnoDB table type - by El Forum - 08-20-2008, 10:57 AM
How to Specify InnoDB table type - by El Forum - 08-20-2008, 11:42 AM
How to Specify InnoDB table type - by El Forum - 08-20-2008, 11:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB