Marco
2004-05-11 02:56:03 UTC
Hi
The last of the following statements generates the error "Uniqueness of index ORDPROD is violated". I don't understand why since both the fields are in the primary key. Am I missing something? I'm using the MS Visual FoxPro ODBC driver v. 6.00.8167.00
CREATE TABLE `C:\TBL_LINEITEM`
ORDERID I NOT NULL,
PRODUCTID I NOT NULL,
PRIMARY KEY ORDERID + PRODUCTID FOR NOT DELETED() TAG ORDPRO
insert into TBL_LINEITEM values (1, 1
insert into TBL_LINEITEM values (1, 2
insert into TBL_LINEITEM values (1, 3
insert into TBL_LINEITEM values (2, 2
Thanks
Marc
The last of the following statements generates the error "Uniqueness of index ORDPROD is violated". I don't understand why since both the fields are in the primary key. Am I missing something? I'm using the MS Visual FoxPro ODBC driver v. 6.00.8167.00
CREATE TABLE `C:\TBL_LINEITEM`
ORDERID I NOT NULL,
PRODUCTID I NOT NULL,
PRIMARY KEY ORDERID + PRODUCTID FOR NOT DELETED() TAG ORDPRO
insert into TBL_LINEITEM values (1, 1
insert into TBL_LINEITEM values (1, 2
insert into TBL_LINEITEM values (1, 3
insert into TBL_LINEITEM values (2, 2
Thanks
Marc