Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / March 2005

Tip: Looking for answers? Try searching our database.

chnage use identity column to sequence

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
edurne murgiondo - 31 Mar 2005 15:35 GMT
I have a table with a column as identity. I don't know how can migrate a
identity column to a normal column using sequence.
Thnaks
bwmiller16@yahoo.com - 31 Mar 2005 16:05 GMT
I think you are going to have to export the data, drop the table,
re-create the table without IDENTITY, re-load the data.

Then create your sequence, do your 'grant usage', set the sequence to
the correct value, then modify your inserts, etc. to reference the
sequence.
Sean McKeough - 31 Mar 2005 16:35 GMT
If you're on stinger, you can drop the identity attribute for a column,
and change it's generation attributes (see the alter table statement in
the SQL ref).

> I have a table with a column as identity. I don't know how can migrate a
> identity column to a normal column using sequence.
> Thnaks
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.