views:

27

answers:

1

Currently, I'm getting the ID of the column via a select statement and insert all the returned values (except the ID).

Is there an easier way to do it?

+3  A: 

I don't know Oracle one bit, but there should be an equivalent to

INSERT INTO TABLENAME select * FROM tablename WHERE id = x
Pekka
That will work in Oracle as written, assuming it doesn't violate a primary or unique constraint.
Allan