List:General Discussion« Previous MessageNext Message »
From:Paul DuBois Date:January 31 2003 9:02pm
Subject:Re: Question about Table_Options
View as plain text  
At 8:12 +0000 1/31/03, Jonathan Bedford wrote:
>Hi
>
>When creating a table can you use multiple Table_Options?
>
>The O'Reilly "Managing & Using MySQL" show on page 288 a table been created
>with two options "...)AUTO_INCREMENT = 1, TYPE=InnoDB;"

The comma should be omitted.  You can specify multiple table options, but
you simply list them one after the other, separated by whitespace.


...) AUTO_INCREMENT = 1 TYPE = InnoDB;

(Note that this particular combination of options is a little strange.
You cannot set the initial AUTO_INCREMENT value explicitly for an InnoDB
table.  The initial value will be 1, but then there is little need for
the AUTO_INCREMENT option in the example.)

>
>But the MySQL manual says "or":-
>
>table_options:
>	TYPE = {BDB | HEAP | ISAM | InnoDB | MERGE | MRG_MYISAM | MYISAM }
>or	AUTO_INCREMENT = #
>.....
>
>Thanks
>   Jonathan

Thread
Question about Table_OptionsJonathan Bedford31 Jan
  • Re: Question about Table_OptionsiConnect \(Berlin\) Stefan Hinz31 Jan
  • Re: Question about Table_OptionsPaul DuBois31 Jan