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

auto number through Query 3

Status
Not open for further replies.

aatif

Programmer
Dec 5, 2001
7
GB
How can I create a field in a table with data type auto number,

e.g.
create table docUsers (id number, login text(25), password text(25), level number, constraint doc_pk primary key ([id]) )

In this query I want to change the data type of id to autonumber, how can I achieve that.

Thanx
Aatif Malik
 
Try the following:
[tt]
CREATE TABLE docUsers (
id Counter,
login text(25),
password text(25),
level number,
constraint doc_pk primary key ([id])
)
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top