Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

±±´óÇàÄñoracleѧϰ±Ê¼Ç31

pl/sql ±í
ÔÚpl/sql¿éÖÐÁÙʱʹÓá¢ÏñÊý×éÒ»ÑùµÄ¶ÔÏó
°üº¬Ò»ÁкÍÒ»¸öÖ÷¼ü
²»ÄܶÔÁкÍÖ÷¼ü½øÐÐÃüÃû
ÁпÉÒÔÊÇÈκαêÁ¿Êý¾ÝÀàÐÍ
Ö÷¼ü±ØÐëÊÇbinary_integerÀàÐÍ
´óСûÓÐÏÞÖÆ
ÉùÃ÷pl/sql±í
    ¶¨Òå±íµÄÀàÐÍ
    type ÀàÐÍÃû is table of ÁÐÀàÐÍ|±äÁ¿Êý¾ÝÀàÐÍ index by binary_integer;
    ÉùÃ÷±í±äÁ¿
    ±íÃû ÀàÐÍÃû;
ÒýÓÃpl/sql±í
    ±íÃû(ϱê)
¸³Öµ
    ±íÃû(ϱê):=±í´ïʽ;
ÊôÐÔ·½·¨:
   count --·µ»Øpl/sql±íµÄ×ÜÐÐÊý£»
   delect --ɾ³ýpl/sql±íµÄËùÓÐÄÚÈÝ£»
   delect(ÐÐÊý) --ɾ³ýpl/sql±íµÄÖ¸¶¨µÄÐУ»
   delct(¿ªÊ¼ÐУ¬½áÊøÐÐ) --ɾ³ýpl/sql±íµÄ¶àÐУ»
   first --·µ»Ø±íµÄµÚÒ»¸öINDEX;
   next(ÐÐÊý) --Õâ¸öÐÐÊýµÄÏÂÒ»ÌõµÄINDEX;
   last --·µ»Ø±íµÄ×îºóÒ»¸öINDEX;
declare
Type stuNameTableType is table of student.stu_name%type index by binary_integer;
stuNameTable stuNameTableType;
begin
for i in 1..10
loop
stunametable(i):='student'||i;
end loop;

for i in 1..stunametable.count
loop
dbms_output.put_line('µÚ'||i||'¸öÔªËØ£º'||stunametable(i));
end loop;
end;
±íÀàÐÍÐèҪʹÓÃbulk collectÅúÁ¿°ó¶¨½øÐÐselect¸³Öµ£¬bulk collect×Ó¾äÒ²¿ÉÓÃÓÚFetch bulk collect into ×Ó¾äÖÐ
declare
TYPE studentTableType is table of student%rowtype index by binary_integer;
studentTable studentTableType;
begin
select * bulk collect into studentTable from student order by stu_id;
for i in 1..studentTable.count loop
dbms_output.put_line(studentTable(i).stu_id);
dbms_output.put_line(studentTable(i).stu_name);
dbms_output.put_line(studentTable(i).stu_sex);
dbms_output.put_line(studentTable(i).stu_birthday);
end loop;
end;
RecordÀàÐÍ
ÉùÃ÷

    type ¼Ç¼ÀàÐÍÃû is record (

        ×Ö¶Î1 ÀàÐÍ[not null[:=±í´ïʽ]]

        ×Ö¶În ÀàÐ


Ïà¹ØÎĵµ£º

LinuxÏÂÆô¶¯oracle10gµÄemºÍisqlplus

LinuxÏÂÆô¶¯oracle10gµÄemºÍisqlplusµÄ·½·¨:
×¢:$ORACLE_HOMEΪoracleµÄ°²×°Â·¾¶
1,ʹÓÃEM(enterprise managment)
1.1Æô¶¯EM
$ORACLE_HOME/bin/emctl start dbconsole
Èç¹û³öÏÖÏÂÃæÏà¹ØÐÅÏ¢,˵Ã÷·þÎñÆô¶¯
Z set to PRC
Oracle Enterprise Manager 10g Database Control Release 10.1.0.3.0
Copyright (c) 1996, 200 ......

µ÷ÊÔoracle»º´æÃüÖÐÂÊÀ´Ôö¼ÓÊý¾Ý¿âµÄЧÂÊ


ÏÂÃæÁ½ÆªÎÄÕÂÈ«²¿ÊÇתÌû~
Ô­µØÖ·£ºhttp://www.im80hou.com/html/oracle/2009/0722/824.html
ÀíÂÛ£º
ÄÚ´æÓëÓ²Å̵ÄËٶȲîÒ죬´ÓÄÚ´æÖжÁÈ¡Êý¾ÝÒª±È´ÓÓ²ÅÌÖжÁÈ¡Êý¾Ý¿ì10000±¶
ÖÚËùÖÜÖª£¬´ÓÄÚ´æÖжÁÈ¡Êý¾ÝÒª±È´ÓÓ²ÅÌÖжÁÈ¡Êý¾Ý¿ì10000±¶¡£ÕâÖ÷ÒªÊÇÄÚ´æÓëÓ²Å̵ÄËٶȲîÒìËùÔì³ÉµÄ¡£Îª´ËÔÚOracleÊý¾Ý¿âÖÐÌá³öÒ»¸öÊý¾Ý»º´æµÄ ......

OracleÖÐ Alter Table Óï¾äµÄʹÓÃ

alter table µÄ¹¦ÄÜÊÇÐ޸ıí¸ñ¡£°üÀ¨ÖØÃûÃü£¬¼Ó¼õ×Ö¶Î,ÐÞ¸Ä×Ö¶ÎÀàÐͺʹóС£¬´¦Àí Ô¼ÊøµÈµÈ¡£±¾Àý×ÓÖ®´¦Àí±íÃûºÍ×ֶΣ¬´úÂëÈçÏ£º
create table liu(a varchar2(20),b number(2))
alter table liu rename to jin
rename jin to cai
alter table cai add  c varchar2(30)
alter table cai add  (d varchar2(3 ......

Solaris10 °²×°Oracle 10g

ºÃûÓÐÅöSolarisÁË£¬ÊÖÓÐЩÉúÁË£¬¿´À´ÕæÒª×°¸ösolaris£¬Æ½Ê±¶àÍæÍæ¡£
ÔÚsolarisÉÏ×°Oracle 10gÏÈ¡£
1. ¼ì²é°²×°ÒÀÀµ°ü
¹Ù·½ÒªÇóµÄ°ü
SUNWarc
SUNWbtool
SUNWhea
SUNWlibm
SUNWlibms
SUNWsprot
SUNWtoo
SUNWi1of
SUNWi1cs
SUNWi15cs
SUNWxwfnt
Ö´ÐÐÃüÁî
# pkginfo -i SUNWarc SUNWbtool SUNWhea SUNWlibm SU ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ