On Friday 04 April 2003 12:19, Ian Hartas wrote: > >You can't add constraints referencing indices that don't exist. > >Create your indecies first. > > Constraints don't reference indexes, they reference columns. > These columns exist. When the table type is MyISAM, the syntax > is accepted. When it's InnoDB - it fails. > ( > This schema was originally on Oracle, where the syntax was valid and > acted on.)
MyISAM table doesn't support FOREIGN KEY constraints. InnoDB does. But both columns must be undexed, please read more in the manual: http://www.mysql.com/doc/en/SEC463.html -- For technical support contracts, goto https://order.mysql.com/?ref=ensita This email is sponsored by Ensita.net http://www.ensita.net/ __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Victoria Reznichenko / /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED] /_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net <___/ www.mysql.com -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]