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

oracleѧϰ£¨¼òµ¥²éѯ£©

    £¨1£©²éѯC01¿Î³Ì³É¼¨²»ÎªNullµÄѧÉúµÄÐÕÃûºÍ³É¼¨¡£
         ·ÖÎö£ºÒòΪÉæ¼°µ½¿Î³Ì³É¼¨ºÍѧÉúÐÕÃû£¬ÐèÒª¶Ôstudent±íºÍsc±í½øÐÐÁ¬½Ó¡£
´úÂ룺
select sname,grade from student,sc where student.sno=sc.sno and cno='C01' and grade is not null;
½á¹û£º
 
          SNAME                                               GRADE
       -------------------- ---------------------------------------
         ¸ðÁé                                                     68
         ÔÀÁÖÔ                                                 60
         ¼§Ê¤¿¡                                                 54
         ÂíÔ´       &n


Ïà¹ØÎĵµ£º

oracle ÖеÄINTERVAL º¯ÊýÏê½â

INTERVAL YEAR TO MONTHÊý¾ÝÀàÐÍ
OracleÓï·¨:
INTERVAL 'integer [- integer]' {YEAR | MONTH} [(precision)][TO {YEAR | MONTH}]
¸ÃÊý¾ÝÀàÐͳ£ÓÃÀ´±íʾһ¶Îʱ¼ä²î, ×¢Òâʱ¼ä²îÖ»¾«È·µ½ÄêºÍÔÂ. precisionΪÄê»òÔµľ«È·Óò, ÓÐЧ·¶Î§ÊÇ0µ½9, ĬÈÏֵΪ2.
eg:
INTERVAL '123-2' YEAR(3) TO MONTH   & ......

Oracle¶ÔÏóÀàÐÍÏê½â

³éÏóÊý¾ÝÀàÐÍ
1¡¢´´½¨ÀàÐÍ
--µØÖ·ÀàÐÍ
CREATE OR REPLACE TYPE AddressType AS OBJECT
(
Country varchar2(15),
City varchar2(20),
Street varchar2(30)
);
2¡¢ÀàÐÍǶÌ×
--´´½¨»ùÓÚÇ°Ò»¸öÀàÐ͵ÄеijéÏóÊý¾ÝÀàÐÍ£º¾ÞÐÇÀàÐÍ
CREATE OR REPLACE TYPE SuperStarType AS OBJECT
(
StarName varchar2(30),
Addres ......

OracleÊý¾Ýµ¼Èëµ¼³ö

OracleÊý¾Ýµ¼Èëµ¼³öimp/exp¾ÍÏ൱ÓÚoracleÊý¾Ý»¹Ô­Ó뱸·Ý¡£expÃüÁî¿ÉÒÔ°ÑÊý¾Ý´ÓÔ¶³ÌÊý¾Ý¿â·þÎñÆ÷µ¼³öµ½±¾µØµÄdmpÎļþ£¬impÃüÁî¿ÉÒÔ°ÑdmpÎļþ´Ó±¾µØµ¼Èëµ½Ô¶´¦µÄÊý¾Ý¿â·þÎñÆ÷ÖС£ÀûÓÃÕâ¸ö¹¦ÄÜ¿ÉÒÔ¹¹½¨Á½¸öÏàͬµÄÊý¾Ý¿â£¬Ò»¸öÓÃÀ´²âÊÔ£¬Ò»¸öÓÃÀ´ÕýʽʹÓá£
    Ö´Ðл·¾³£º¿ÉÒÔÔÚSQLPLUS.EXE»òÕßDOS£¨ÃüÁîÐУ ......

oracleÖеÄÊÓͼ


create table a(
id number primary key,
name varchar2(20)
);
create table b(
id number,
name varchar2(20),
aid number references a(id)
);
insert into a values(1,'1');
insert into b values(1,'aaa',1);
Èç¹û create view vi_new as select * from a
ÔÚÊÓͼvi_new ÉÏ×öÈκΠdml²Ù×÷¶¼»áÐÞ¸Ä ¶ÔÓ¦µÄ ......

Ð޸ĵçÄÔµÄÖ÷»úÃûoracle agent ·þÎñͻȻÎÞ·¨Æô¶¯

½ñÌìÓöµ½ÕâÑùµÄÎÊÌ⣬ÐÞ¸ÄÖ÷»úÃûºóoracle agent ·þÎñͻȻÎÞ·¨Æô¶¯£¬ÉÏÍøÕÒÁËÒ»»á×öÈçϲÙ×÷¡£¿ÉÒÔÕý³£Ê¹ÓÃÁË
1¡¢½«%oracle_home\ora92\network\adminϵÄlistener.oraºÍtnsnames.oraÄÚµÄËùÓÐÔ­Ö÷»úÃû¸ÄΪÏÖÓÐÖ÷»úÃû»òÕ߹̶¨IPµØÖ·£¨ÒÔ±ã¿Í»§¶Ë»úÆ÷Äܹ»·ÃÎÊServer£©£¬µ±È»Èç¹ûϵͳÖØÆôºó×Ô¶¯¸ÄÕý£¬¿ÉºöÂԴ˲½Öè¡£
2¡¢½«%o ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ