You can do it using alter table table1 add (courseId numeric(10))
then
update table1 set courseid=courseno
then alter table table1 drop "pkoldname"
then alter table table1 add primary key pknewname (courseid)
You can also user enterprise manager to do above operation using gui.
urtrivedi
Nearly a Posting Virtuoso
1,306 posts since Dec 2008
Reputation Points: 257
Solved Threads: 270