Connecting Tech Pros Worldwide Help | Site Map

Data Definition Query Question -- Add New Autonumber Field

Michael Wiseley
Guest
 
Posts: n/a
#1: Jul 18 '06
I am trying to write a Data Definition type query that will add a new
auto-numbered column to an existing table.

Typically, I would set this up with the following syntax:

"ALTER Table XXX
ADD Column ItemNo Long;"

However, I want the ItemNo to actually be an autonumber Long Integer
field. Any advise on how to change up the SQL for this query would be
appreciated. Thanks.

rkc
Guest
 
Posts: n/a
#2: Jul 18 '06

re: Data Definition Query Question -- Add New Autonumber Field


Michael Wiseley wrote:
Quote:
I am trying to write a Data Definition type query that will add a new
auto-numbered column to an existing table.
>
Typically, I would set this up with the following syntax:
>
"ALTER Table XXX
ADD Column ItemNo Long;"
>
However, I want the ItemNo to actually be an autonumber Long Integer
field. Any advise on how to change up the SQL for this query would be
appreciated. Thanks.
Replace Long with AutoIncrement

Closed Thread