Home  >  Article  >  Database  >  oracle数据库添加或删除一列的sql语句

oracle数据库添加或删除一列的sql语句

WBOY
WBOYOriginal
2016-06-07 18:07:131546browse

需要注意的一点,如果要修改的表,不是当前的用户的表,那么就需要添加上用户的名称。以及有修改此表的权限

alert table 表名 add column 列名
alter table 表名 drop column 列名
eg:
alter table TPointManage add AddPointsReason number(8)
alter table textattrdetail drop column AddPointsReason

需要注意的一点,如果要修改的表,不是当前的用户的表,那么就需要添加上用户的名称。以及有修改此表的权限。
Statement:
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