Rename Oracle Table or View

前端 未结 5 1085
情歌与酒
情歌与酒 2020-12-13 23:27

What is the syntax to rename a table or view in Oracle?

5条回答
  •  温柔的废话
    2020-12-13 23:46

    In order to rename a table in a different schema, try:

    ALTER TABLE owner.mytable RENAME TO othertable;
    

    The rename command (as in "rename mytable to othertable") only supports renaming a table in the same schema.

提交回复
热议问题