随笔分类 -  PL/SQL

从PL/SQL FAQ中摘抄出来几篇比较有用的文章
摘要:全文阅读见PL/SQL FAQHow can one see if somebody modified any code?The source code for stored procedures, functions and packages are stored in the Oracle Data Dictionary. One can detect code changes by looking at the TIMESTAMP and LAST_DDL_TIME column in the USER_OBJECTS dictionary view. Example:SELECT OB 阅读全文

posted @ 2012-04-24 16:09 h2内存数据库 阅读(254) 评论(0) 推荐(0) 编辑

Cursor Loop
摘要:Cursor LoopExplicitly declared cursor and recordCREATE ORREPLACE PROCEDURE <procedure_name> ISCURSOR <cursor_name> IS<SQL statement><record_name> <cursor_name>%ROWTYPE;BEGIN OPEN <cursor_name> LOOP FETCH <cursor_name> INTO <record_name>; EXIT WHEN < 阅读全文

posted @ 2012-04-24 15:33 h2内存数据库 阅读(335) 评论(0) 推荐(0) 编辑

PL/SQL LOOP Construct
摘要:Oracle提供三种样式的Loop结构1. The Basic LoopThe BASIC loop repeats until a condition is met. Because the condition is tested at the end of the loop, the BASIC loop will always execute at least once.A simple loop runs until you explicitly end the loop. The syntax for a simple loop is as follows:LOOP [Sequ... 阅读全文

posted @ 2012-04-24 15:14 h2内存数据库 阅读(421) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示