ORACLEÓαê
ORACLEÓαê
Óα꣺ÈÝÆ÷£¬´æ·Åµ±Ç°SQLÓï¾äÓ°ÏìµÄ¼Ç¼
ËùÓÐDMLÓï¾ä¶¼»áÓõ½Óαê
ÖðÐд¦ÀíÓ°ÏìµÄÐÐÊý
Óαê
¾²Ì¬Óα꣺ÓαêÓëSQLÓï¾äÔÚÔËÐÐǰ¹ØÁª
¶¯Ì¬Óα꣺ÓαêÓëSQLÓï¾äÔÚÔËÐÐʱ¹ØÁª
Óαê
ÒþʽÓα꣺×Ô¶¯ÉùÃ÷¡¢´ò¿ª¡¢¹Ø±Õ£¬ÆäÃûSQL
ÏÔʽÓα꣺
REFÓα꣺£¨¶¯Ì¬Óα꣩
ÏÔʽÓαê²Ù×÷¹ý³Ì
ÉùÃ÷Óα꣨¹ØÁªSQLÓï¾ä£© cursor Ãû×Ö is/as sqlÓï¾ä£¨DML£©;
´ò¿ªÓαִ꣨ÐÐSQLÓï¾ä£¬Ìî³äÓα꣩ open Ãû×Ö;
´ÓÓαêÖÐÌáȡֵ£¬´æ·Åµ½ÐÐÀàÐͱäÁ¿ÖÐ fetch Ãû×Ö into ÐÐÀàÐͱäÁ¿;
¹Ø±ÕÓαê close Ãû×Ö;
declare
empR emp%rowtype;
--ÉùÃ÷Óαê(¹ØÁªSQLÓï¾ä)
cursor empCursor
is
select * from emp;
begin
--´ò¿ªÓαִ꣨ÐÐSQLÓï¾ä£¬Ìî³äÓα꣩
open empCursor;
loop
--´ÓÓαêÖÐÌáȡֵ£¬´æ·Åµ½ÐÐÀàÐͱäÁ¿ÖÐ
fetch empCursor into empR;
exit when empCursor%notfound;--ÓαêÖÐûÓÐÊý¾ÝʱÍ˳öÑ»·
dbms_output.put_line(empR.ename||' '||empR.sal);
end loop;
--¹Ø±ÕÓαê
close empCursor;
end;
SQL>
Ïà¹ØÎĵµ£º
1
2
3
×÷Õߣº À´Ô´£º ¸üÐÂÈÕÆÚ£º2006-01-04
5
6
7
½¨Á¢±í¿Õ¼ä
8
9
CREATE TABLESPACE data01
10
DATAFILE '/oracle/oradata/d ......
1.´´½¨Ñ§Éú±í£º
CREATE TABLE student (
xh number primary key,
Name varchar2(10) not null);
2. ´´½¨ÐòÁУº
CREATE SEQUENCE student_seq
START WITH 1
INCREMENT BY 1
NOCACHE;
°´»Ø³ ......
Oracle JDeveloper 10g Release Download
Oracle JDeveloper 10g (version 9.0.5.1, build 1605) for Windows NT/2000/X, Linux, Solaris, and HP-UX.
http://download.oracle.com/otn/java/jdeveloper/905/jdev9051.zip
http://download-east.oracle.com/otn/java/jdeveloper/905/jdev9051.zip
http://download-west ......
t±íÖн«½üÓÐ1100ÍòÊý¾Ý£¬ºÜ¶àʱºò£¬ÎÒÃÇÒª½øÐÐ×Ö·û´®Æ¥Å䣬ÔÚSQLÓï¾äÖУ¬ÎÒÃÇͨ³£Ê¹ÓÃlikeÀ´´ïµ½ÎÒÃÇËÑË÷µÄÄ¿±ê¡£µ«¾¹ýʵ¼Ê²âÊÔ·¢ÏÖ£¬likeµÄЧÂÊÓëinstrº¯Êý²î±ðÏ൱´ó¡£ÏÂÃæÊÇһЩ²âÊÔ½á¹û£º
SQL> set timing on
SQL> select count(*) from t where instr(title,’ÊÖ²á’)>0;
COUNT(*)
—&md ......
Hey all,
Since there seems to be a fair bit of disinformation, and utter nonsense,
floating around since my talk at the Black Hat Federal security conference
the other day, I have decided to publish the following papers.
http://www.databasesecurity.com/HackingAurora.pdf
http://www.databasesec ......