---
title: "oracle中修改表字段sql语句"
author: "Edision"
date: "2012-08-04T11:23:21Z"
tags: []
categories: ["数据库"]
slug: "oracle-sql"
draft: false
lastmod: "2012-08-04T11:23:21Z"
id: 1618975
url: "https://edision.iteye.com/blog/1618975"
---

**oracle中修改表字段常用语句如下：**
1、重命名表
ALTER TABLE table_name RENAME TO new_table_name;

2、添加列：
alter table tablename add(column1 datatype, column2 datatype, …)
说明：添加多列的话，用逗号隔开。
SQL> alter table s_dept add(age number(1));
3、修改列：
alter table tablename modify (column datatype);
ALTER TABLE tableName modify(columnName 类型);

4、删除列
ALTER TABLE table_name DROP COLUMN column_name;