Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

composite key

Status
Not open for further replies.

ARCITS

Programmer
Apr 4, 2002
99
GB
How do I define a composite key in FoxPro on fields InvoiceNo and ProdNo?
None of the usual SQL syntaxes seem to do the job

Any help urgently required


Regards

CREATE TABLE INVOICE_PRODUCT
(
InvoiceNo CHAR(6) PRIMARY KEY NOT NULL REFERENCES Invoice TAG InvoiceNo, ProdNo CHAR(5) NOT NULL REFERENCES Product_ID TAG ProdNo,
Qty INT(7),
Price FLOAT(4,2)
)
 
After creating the table,
INDEX ON InvoiceNo + ProdNo TAG InvProdKey
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top