- siob执行多条
执行多个SQL语句时,需要用斜线把各个SQL语句分隔开。(斜线代替分号)
注:http://www.presoft.com.cn/ob/objecthelp/index.html# - 创建表、添加注释
create table 表名称
(
id varchar2(50) primary key ,
name char(200) not null,
phone number(11) unique,
class carchar(10),
foreign key (name)
)
tablespace USERS ----表放在USERS表空间
pctfree 10 ----保留10%空间给更新该块数据使用
initrans 1 -----初始化事物槽的个数
maxtrans 255 ----最大事务槽的个数
storage ----存储参数
(
initial 64K ---区段一次扩展64k
next 1M
minextents 1 ---最小区段数
maxextents unlimited --最大区段无限制
);
注:https://www.cnblogs.com/diandixingyun/p/11608535.html
添加注释
---添加表注释:
COMMENT ON table t1 IS '个人信息';
---添加字段注释:
comment on column t1.id is 'id';
comment on column t1.name is '姓名';
comment on column t1.age is '年龄';
注:https://www.cnblogs.com/xujiating/p/6236592.html
添加字段
ALTER TABLE hr_arc_receipt_bak ADD ZWDOC varchar2(255);
alter table 表名称 add (name varchar2(100),code varchar(20));
注:https://www.cnblogs.com/diandixingyun/p/11608535.html