Home > Database > Oracle > body text

How to modify table name in oracle

hzc
Release: 2020-06-16 16:08:38
Original
15147 people have browsed it

How to modify table name in oracle

How to modify the table name in oracle

Method 1:alter table old_table_name rename to new_table_name;

This is the simplest (personally think)

Method 2: select tname from tab; (querying all table names in the database) rename old_table_name to new_table_name;

rename can only modify the table under its own schema

Method three: create table new_table_name as select * from old_table_name;

It is equivalent to copying it into a new table

drop table old_table_name; Delete the old table

Method 4: Change it directly in PLSQL developer

Recommended tutorial: " Oracle tutorial

The above is the detailed content of How to modify table name in oracle. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!