您的位置:首页 > 理论基础 > 数据结构算法

oracle 数据结构

2016-01-15 00:00 218 查看
oracle 数据结构

添加字段

alter table tablename add(columname columtype)

删除字段

alter table tablename drop(columname)

查看表字段结构

desc tablename

添加主键
alert table 表名 add constraint pkKey primary key(字段列表)

eg. alter table OP_LOG add constraint PK_OP_LOG primary key(OP_LOG_ID);

查看所有存储过程(2013-01-18)

select * from user_objects where object_type='PROCEDURE';
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: