摘要: 本章主要讨论 case 语句 1: case [SELECTOR] 2: when expression 1 then statement 1; 3: when expression 2 then statement 2; 4: ... 5: when ... 阅读全文
posted @ 2014-04-09 09:51 神之一招 阅读(206) 评论(0) 推荐(0)
摘要: 1. 简单循环 1: LOOP 2: statement1; 3: statement2; 4: EXIT WHEN condition; 5: END LOOP; 6: statement3;也可以使用 IF 语句来限制 exit 的条件.if co... 阅读全文
posted @ 2014-04-09 09:51 神之一招 阅读(185) 评论(0) 推荐(0)
摘要: 1: EXCEPTION 2: WHEN EXCEPTION_NAME THEN 3: ERROR-PROCESSING STATEMENTS;写在 begin 与 end 的之间的处理异常块.常见异常: 20个.多个异常 1: declare 2: ... 阅读全文
posted @ 2014-04-09 09:51 神之一招 阅读(164) 评论(0) 推荐(0)
摘要: 这章主要讨论 oracle11g 新特性, continue, continue when 语句continue 的作用同其他编程语言一样.continue when condition 只是当条件成立的情况下, 才结束当前循环, continue 的作用就是结束当前循环.另外, 循环可以嵌套使用.... 阅读全文
posted @ 2014-04-09 09:51 神之一招 阅读(236) 评论(0) 推荐(0)
摘要: 1. 在Pl/sql 中使用 sql 1: /* 2: * 一个 pl/sql 语句块, 只是一个容器, 是表明一个整体的容器, 容器里可以放置多个sql语句 3: */ 4: 5: declare 6: v_zip zipcode.zip%t... 阅读全文
posted @ 2014-04-09 09:50 神之一招 阅读(254) 评论(0) 推荐(0)
摘要: 本章主要讨论, IF 语句的应用. 1: if condition1 then 2: statement1 3: elsif condition2 then 4: statement2 5: else 6: statement3 7: end i... 阅读全文
posted @ 2014-04-09 09:50 神之一招 阅读(201) 评论(0) 推荐(0)