check view total number select count(VIEW_NAME) from USER_VIEWS; check trigger total number select COUNT(*) from USER_TRIGGERS; check procedure,check functions SELECT OBJECT_NAME,OBJECT_TYPE FROM ALL_OBJECTS WHERE OBJECT_TYPE IN ('FUNCTION','PROCEDUR…
回顾: 1.record类型 定义record类型,声明变量,保存s_dept表中id = 31部门信息 declare /* 定义record类型 */ type deptrecord is record( id number, name s_dept.name%type, r_id number ); /* 声明变量 */ var_dept deptrecord; var_id number:=&id; begin select * into var_dept from s_dept whe…
create database Liber; use Liber; #顯示數据庫 20150210 Geovin Du 涂聚文 SHOW DATABASES; drop table BookKindList; #书目录 create table BookKindList ( BookKindID INT NOT NULL AUTO_INCREMENT, #自动增加 BookKindName nvarchar(500) not null, BookKindParent int null, PRIM…