Aug 14, 2000 #1 daewoo Programmer Aug 14, 2000 1 US Hi all,<br><br>Anyone know how to implement a SQL Server Identity Column( A auto incrementing number) in Teradata?<br><br>Thanks for your time
Hi all,<br><br>Anyone know how to implement a SQL Server Identity Column( A auto incrementing number) in Teradata?<br><br>Thanks for your time
Aug 23, 2005 #2 CapsuleCorpJX IS-IT--Management Jun 23, 2004 70 US Its better to just do it software side (lock table, get highest number, insert new record with highest number + 1, unlock table). I don't know if Teradata has autoincrement. Upvote 0 Downvote
Its better to just do it software side (lock table, get highest number, insert new record with highest number + 1, unlock table). I don't know if Teradata has autoincrement.
Aug 23, 2005 #3 tdatgod Programmer Jul 21, 2001 601 US Hi, IDENTITY COLUMN is not the same thing as AUTO INCREMENTING. There is no ANSI requirement that IDENTITY be Contigous numbers just that they be UNIQUE across the whole table. So which do you want a UNIQUE IDENTITY COLUMN ( which is implmeneted in v2r6 ) or an AUTO INCREMENT column like.... Insert into table sel MAX(incr)+1, value, value, value .... from table; Upvote 0 Downvote
Hi, IDENTITY COLUMN is not the same thing as AUTO INCREMENTING. There is no ANSI requirement that IDENTITY be Contigous numbers just that they be UNIQUE across the whole table. So which do you want a UNIQUE IDENTITY COLUMN ( which is implmeneted in v2r6 ) or an AUTO INCREMENT column like.... Insert into table sel MAX(incr)+1, value, value, value .... from table;