P
PJW
I would like to create a number of composite primary keys in Access. Is it
possible to create them using a query rather than the Index menu for each
table? For instance, I can define a single variable as a primary key:
CREATE TABLE MyNewTable
(PersonID LONG CONSTRAINT PrimaryKeyName PRIMARY KEY,
PersonName TEXT(50),
Age BYTE);
Is there a way of combining more fields into the PrimaryKeyName index? Also,
can the foreign key for another table be defined at this stage or is an
update required?
Many thanks for any suggestions.
possible to create them using a query rather than the Index menu for each
table? For instance, I can define a single variable as a primary key:
CREATE TABLE MyNewTable
(PersonID LONG CONSTRAINT PrimaryKeyName PRIMARY KEY,
PersonName TEXT(50),
Age BYTE);
Is there a way of combining more fields into the PrimaryKeyName index? Also,
can the foreign key for another table be defined at this stage or is an
update required?
Many thanks for any suggestions.