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

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

WBOY
Release: 2016-06-07 18:07:13
Original
1608 people have browsed it

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

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

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