On Thursday 16 January 2003 00:12, vinita Vigine Murugiah wrote: > Rafal Jank wrote: > >On Wed, 15 Jan 2003 11:02:44 +1100 > > > >vinita Vigine Murugiah <[EMAIL PROTECTED]> wrote: > >>HI > >> I'm not sure what is wrong with my CREATE TABLE syntax, Please advice > > > >There is no index on ifname in table equipment_interfaces. > > Well.. Then how come Foreign key equipID in table equipment_interfaces > worked?? There is no INDEX on equipID in table equipment??
equipID is a PRIMARY KEY ;) > >>mysql> CREATE TABLE equipment ( > >> -> equipID CHAR(20) NOT NULL, > >> -> assetNumber CHAR(20), > >> -> serialNumber CHAR(50), > >> -> description BLOB, > >> -> barcode CHAR(20), > >> -> room CHAR(20), > >> -> area CHAR(20), > >> -> owner CHAR(100), > >> -> createDate DATE, > >> -> PRIMARY KEY (equipID) > >> -> ) TYPE=INNODB; > >>Query OK, 0 rows affected (0.00 sec) [skip] -- 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