oracle 数据结构
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';