I'm in the process of creating a new database table and was looking through the Zen Cart install SQL files for a "good example". I see that many of the tables have not only PRIMARY_KEY definitions, but also KEY definitions like below. What do these extra key definitions do for me? Using the Developers Tool Kit to search for 'idx_customers_id_zen' brings up no results ...
Code:
#
# Table structure for table 'files_uploaded'
#
DROP TABLE IF EXISTS files_uploaded;
CREATE TABLE files_uploaded (
files_uploaded_id int(11) NOT NULL auto_increment,
sesskey varchar(32) default NULL,
customers_id int(11) default NULL,
files_uploaded_name varchar(64) NOT NULL default '',
PRIMARY KEY (files_uploaded_id),
KEY idx_customers_id_zen (customers_id)
) ENGINE=MyISAM COMMENT='Must always have either a sesskey or customers_id';
Bookmarks