Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rename View in Oracle [duplicate]

Possible Duplicate:
Rename Oracle Table or View

I know you can use

ALTER TABLE oldName RENAME TO newName;

to rename a table, but "ALTER" doesn't work with renaming views.

What's the syntax for renaming Views in Oracle (i'm using 11g if that makes any difference)?

like image 832
Gunnar Avatar asked Jun 25 '12 14:06

Gunnar


People also ask

How do you rename a view in Oracle?

Use the RENAME statement to rename a table, view, sequence, or private synonym. Oracle Database automatically transfers integrity constraints, indexes, and grants on the old object to the new object.

Can we rename views?

To rename a view In Object Explorer, expand the database that contains the view you wish to rename and then expand the View folder. Right-click the view you wish to rename and select Rename. Enter the view's new name.

How do I rename a view in Oracle 12c?

You can use RENAME on views, like this: Use the RENAME statement to rename a table, view, sequence, or private synonym.

Which statement is used to rename a view?

Use the RENAME TABLE statement to rename a view.


1 Answers

You can use RENAME on views, like this:

Use the RENAME statement to rename a table, view, sequence, or private synonym.

RENAME old_view_name to new_view_name
like image 180
Sergey Kalinichenko Avatar answered Oct 14 '22 06:10

Sergey Kalinichenko