Jump to content

mysql quick question


asmith

Recommended Posts

CREATE TABLE `registered_members` (

`id` int(4) NOT NULL auto_increment,

`name` varchar(65) NOT NULL default '',

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

`password` varchar(65) NOT NULL default '',

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

PRIMARY KEY (`id`)

) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;

 

 

what does the last line means in mysql ?

Link to comment
https://forums.phpfreaks.com/topic/78119-mysql-quick-question/
Share on other sites

ENGINE=MyISAM

Sets the table's engine to MyISAM.  MySQL supports several engine types, MyISAM is one of them.

 

CHARSET=latin1

Sets the character encoding for the table.  This is important for text comparisons and other things, not really my specialty.

 

AUTO_INCREMENT=1

The table has an auto incrementing field named `id`.  This tells the table to start with the number 1.  The table would have done this anyways, so this is redundant AFAIK.

Link to comment
https://forums.phpfreaks.com/topic/78119-mysql-quick-question/#findComment-395335
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.