On Wednesday 15 January 2003 02:02, vinita Vigine Murugiah wrote: > HI > I'm not sure what is wrong with my CREATE TABLE syntax, Please advice
[skip] > mysql> CREATE TABLE equipment_interfaces ( > -> equipID CHAR(20) NOT NULL, > -> ifName CHAR(20) NOT NULL, > -> ifType ENUM("10Mbs","100Mbs","1Gb","CDDI","FDDI"), > -> ifNet CHAR(50), > -> ifIPv4addr CHAR(20), > -> INDEX (equipID), > -> FOREIGN KEY (equipID) REFERENCES equipment (equipID) ON > DELETE CASCADE, > -> PRIMARY KEY (equipID, ifName) > -> ) TYPE=INNODB; > Query OK, 0 rows affected (0.01 sec) ifName in the `equipment_interfaces` should be indexed. -- For technical support contracts, goto https://order.mysql.com/?ref=ensita This email is sponsored by Ensita.net http://www.ensita.net/ __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Egor Egorov / /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED] /_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net <___/ www.mysql.com --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php