Creating a table with multiple key and boolean fields in SQL
- From: "Dave Blake" <barnswood@xxxxxxxxxxx>
- Date: Mon, 25 Jul 2005 08:44:18 +0100
I'm having problems using DDL SQL commands via ADO onto an Access mdb file.
Can someone point me at a reference source for the supported syntax etc.?
Or specifically tell me how to create a table with multiple field primary
key and integer (not longint) and boolean fields.
It is something like
CREATE TABLE MyTable (Field1 INTEGER, Field2 INTEGER, .... FieldX BOOLEAN)
but "Boolean" is wrong and Integer gives me LongInt fields.
Then followed by
ALTER TABLE MyTable
ADD CONSTRAINT PK_code PRIMARY KEY (field1, field2)
to add the primary key, or can I do it in the create statement somehow?
Thanks
Dave
.
- Follow-Ups:
- Re: Creating a table with multiple key and boolean fields in SQL
- From: Brian Bushay TeamB
- Re: Creating a table with multiple key and boolean fields in SQL
- From: Lee-Z
- Re: Creating a table with multiple key and boolean fields in SQL
- Prev by Date: Re: Locking of individual records in a table?
- Next by Date: Re: Creating a table with multiple key and boolean fields in SQL
- Previous by thread: add index to linked table
- Next by thread: Re: Creating a table with multiple key and boolean fields in SQL
- Index(es):