1,alter table tableName add columnName columnType; 在表中添加新的一个
2,alter table tableName opreator rename column oldColumnName to new ColumnName 修改表中的列
3,alter table tableName drop colum columnName ;
4,alter table tableName set unusered("columnName") casecade constraints; 负载比较轻时 负载重时alter table tableName drop unused columns
5, 存储过程
create or replace procedure (variable variableType) as
begin
执行的内容
end;
6,触发器 一个简单的例子
create or replace trigger triggerName
before INNERT (OR UPDATE) OF columnName on table
7,创建一个表 实例
/*==============================================================*/
/* Table: APPSYS_JSQX */
/*==============================================================*/
create table APPSYS_JSQX (
"ID" VARCHAR2(50) NOT NULL,
"JSBH" VARCHAR2(50),
"QXBH" VARCHAR2(50),
"SCBZ" NUMBER(1),
CONSTRAINT PK_APPSYS_JSQX PRIMARY KEY ("ID")
) TABLESPACE ZJP;
COMMENT ON TABLE APPSYS_JSQX IS
'用户角色权限关系表';
COMMENT ON COLUMN APPSYS_JSQX."ID" IS
'编号';
COMMENT ON COLUMN APPSYS_JSQX."JSBH" IS
'角色编号';
COMMENT ON COLUMN APPSYS_JSQX."QXBH" IS
'权限编号';
COMMENT ON COLUMN APPSYS_JSQX."SCBZ" IS
'删除标志 0代表未删除 1代表已删除';