Connecting Tech Pros Worldwide Help | Site Map

Data Definition Query Question -- Add New Autonumber Field

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 18th, 2006, 12:15 AM
Michael Wiseley
Guest
 
Posts: n/a
Default Data Definition Query Question -- Add New Autonumber Field

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.


  #2  
Old July 18th, 2006, 01:05 AM
rkc
Guest
 
Posts: n/a
Default 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

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.