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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Re: thread318-324211

Status
Not open for further replies.

liaml1

MIS
Nov 24, 2004
63
DM
With respect to thread318-324211 . I would like to know how you can create a key field that is made up of multiple colums. For example, if you have an InvoiceHeader table and an Invoice Details table and you want the InvoiceDetail table's key to be the invoiceNumber and LineNumber how could you achieve this in Pervasive?

Liam
 
If you are using a CREATE INDEX statement, you should just specify multiple columns:
CREATE INDEX idxSegmented on tblTableName (Field1, Field2)
If you are using the Create Table Wizard, you should right click on the index and select "Add Segment" (this applies to V8).

Personally, I would strongly suggest using the CREATE INDEX statement.


Mirtheil
Certified Pervasive Developer
Certified Pervasive Technician
 
Thanks, and how do I link two tables together through a common field?

Liam
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top