Create Table Query (SQL)

K

Kevin O'Shea

Anyone know how to define a Data Type as AutoNumber in a
create table query done in SQL. I can define as text,
currency, etc. but the program won't accept autonumber.
Here is sample of code:

CREATE TABLE RANKTEMP
([RANK] number,
[ID] number,
[Building Number] text,
[Cost] currency,
......

I am trying to get it to apply a [RANK] as an autonumber.
Thanks in advance for any help.
 
D

Dan Artuso

Hi,
I believe the correct word is:
Autoincrement. "Counter" will also work in Access
CREATE TABLE Code3 (
ID AUTOINCREMENT,
Account TEXT(50),
Code MEMO,
Active Bit,
Hits int,
Rotation int
)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top