Question

Is there a DB2 v9.1 equivalent for sp_rename?

Was it helpful?

Solution

It depends on the object.

For tables and indexes, you can use the RENAME sql statement.

If you want to rename a column, you can use ALTER TABLE ... RENAME COLUMN.

For other objects, you probably have to drop and recreate it.

Hope that helps.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top