๐ป Programming/Oracle 11g
ํ ์ด๋ธ ๋ช ๋ณ๊ฒฝํ๊ธฐ ( Renaming Table Name )
์ผ์ด์น
2015. 4. 14. 15:20
์ค๋์ ํ ์ด๋ธ ๋ช ๋ณ๊ฒฝํ๋ ๋ฒ์ ๋ํด์ ์์๋ณด๋๋ก ํ๊ฒ ์ต๋๋ค.
ํ ์ด๋ธ ๋ช ์ ๋ณ๊ฒฝํ ๋๋ ์๋์ฒ๋ผ rename ๋ช ๋ น์ด๋ฅผ ์ฌ์ฉํฉ๋๋ค.
Use rename command to rename a table to a new one.
SQL > rename {old table name} to {new table name}
Table renamed.
๋ณ๊ฒฝ์ด ์๋ฃ๋์๋์ง ์๋์ฟผ๋ฆฌ๋ฅผ ์ด์ฉํด์ ํ์ธํด๋ณด์ธ์.
Check if renaming was successful using below query. Below statement queries the table names owned by you.
SQL > select table_name from user_tables;
You would see renamed table name if it was successful.