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

How to auto increment a field?

Status
Not open for further replies.

khsaunderson

Technical User
Feb 16, 2010
41
GB
I am trying to insert into a table and need to add to an ID field that is auto incremented by a Cobol program, so I need to replicate this in my SQL script. Eg,

Code:
INSERT INTO Table
(ID,
Name)
SELECT
xxxx,
ISRC
FROM TEMP_ISRC

Thanks :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top