D
David Campbell
I am using ODBC to connect to an Access file.
I want to programmatically create a table.
I want the primary key for the table to include 2 fields.
Something like this:
CREATE TABLE ABC
(
FIELD_01 VARCHAR(10),
FIELD_02 VARCHAR(10),
FIELD_03 VARCHAR(10)
PRIMARY KEY (FIELD_01,FIELD_02)
)
The above syntax fails.
What is the SQL syntax to create a table with a multi-field primary key?
thanks,
David
I want to programmatically create a table.
I want the primary key for the table to include 2 fields.
Something like this:
CREATE TABLE ABC
(
FIELD_01 VARCHAR(10),
FIELD_02 VARCHAR(10),
FIELD_03 VARCHAR(10)
PRIMARY KEY (FIELD_01,FIELD_02)
)
The above syntax fails.
What is the SQL syntax to create a table with a multi-field primary key?
thanks,
David