
PL/SQL
dadarain
这个作者很懒,什么都没留下…
展开
-
SQL连接查询
左连接:参照等号左边的表,只要左表中存在就会显示 PL/SQL中的写法: SELECT emp_name, dept_name FORM Employee, Department WHERE Employee.emp_deptid = Department.deptid(+) 右连接:参照等号右边的表,只要右表中存在就会显示 PL/SQL中的写法: SELECT ...原创 2009-04-23 18:21:29 · 93 阅读 · 0 评论 -
PL/SQL字符串Spit,Clob打印
PROCEDURE PRINT_CLOB(P_CLOB IN CLOB) AS L_OFFSET NUMBER DEFAULT 1; BEGIN LOOP EXIT WHEN L_OFFSET > DBMS_LOB.GETLENGTH(P_CLOB); FND_FILE.PUT_LINE(FND_FILE.OUTPUT, ...原创 2009-04-29 16:36:41 · 175 阅读 · 0 评论 -
Oracle DDL和DML基本语法示例
DDL 新建表:create table 表名 ( 主键字段 number(15) PRIMARY KEY , 字段1 nVarChar2(50) default '默认值' null /not null, 字段2 number(30) null , )或 create table 表名 ( 主键字段 number(15) not null , 字段1 nVa...2009-08-14 12:17:44 · 153 阅读 · 0 评论