G'day David, The table creation and FK creation should be split into two commands.
To see how the structure is arranged from the R> type: OUTPUT tbl1.txt UNLOAD STRUCTURE FOR TableName OUTPUT SCREEN RBE tbl1.txt for a table with a FK. At 02:35 PM 16/01/2002 -0800, you wrote: >I'm creating the table structure as follows and I'm having problems with >linking a foreign key to a primary key. The error occurs after I try to >create the artistkeys_ln table. > >SET FASTFK ON >CREATE TABLE artist_keywords+ > (+ > artistkeys_id INTEGER NOT NULL PRIMARY KEY,+ > keyword TEXT 50 NOT NULL UNIQUE+ > ) > >CREATE TABLE artistkeys_ln+ > (+ > catalog_id INTEGER,+ > artistkeys_id INTEGER NOT NULL UNIQUE,+ > FOREIGN INDEX (catalog_id) REFERENCES catalog (catalog_id),+ > FOREIGN INDEX (artistkeys_id) REFERENCES artist_keywords (artistkeys_id)+ > ) > >-ERROR- The referenced table artist_keywords does not >have a compatible Primary Key or Unique. (2770) > >-David >================================================ >TO SEE MESSAGE POSTING GUIDELINES: >Send a plain text email to [EMAIL PROTECTED] >In the message body, put just two words: INTRO rbase-l >================================================ >TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED] >In the message body, put just two words: UNSUBSCRIBE rbase-l Warmest regards, Tom Grimshaw coy: Just For You Software tel: 612 9552 3311 fax: 612 9566 2164 mobile: 0414 675 903 post: PO Box 470 Glebe NSW 2037 Australia street: 3/66 Wentworth Park Rd Glebe NSW 2037 email: [EMAIL PROTECTED] web: www.just4usoftware.com.au This email and any files transmitted with it are confidential to the intended recipient and may be privileged. If you have received this email inadvertently or you are not the intended recipient, you may not disseminate, distribute, copy or in any way rely on it. Further, you should notify the sender immediately and delete the email from your computer. Whilst we have taken precautions to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from such viruses. ================================================ TO SEE MESSAGE POSTING GUIDELINES: Send a plain text email to [EMAIL PROTECTED] In the message body, put just two words: INTRO rbase-l ================================================ TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED] In the message body, put just two words: UNSUBSCRIBE rbase-l
