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

oracleС¼Ç1 5ºÅ

Ò»¡¢          oracle»ù´¡ÖªÊ¶
a¡¢  CRUD²Ù×÷ create read update delete
b¡¢  Êý¾Ý¿â¶ÔÏó
c¡¢  Êý¾Ý¿âÉè¼Æ
d¡¢  Êý¾Ý¿â½á¹¹ÌåϵÓÅ»¯£¨DBA£©
oracleÖдæÔÚËÄÕÅÁ·Ï°±í emp dept slmgad bonus ÕâËÄÕÅ±í£¬»¹ÓÐÒ»ÕÅdual±íÁ·Ï°±í±íÖÐÖ»ÓÐÒ»¸ö×Ö¶ÎÒ»¸öÊý¾Ý¡£
¶þ¡¢          select×Ö¶ÎÖеÄһЩ³£ÓÃ×Ö¶Î
1¡¢  distinct ɾ³ýÖظ´×Ö¶Î
select distinct job from emp;
2¡¢  between ÔÚÖ®¼ä
   select * from emp where sal between 1000 and 2000;
   in ºÍ not inºÍbetween ÓеãÀàËÆ
                  select * from emp where sal in(1000,2000);
         select * from emp where sal not in(1000,2000);
3¡¢  order by ÅÅÐòascÉýÐò£¨Ä¬ÈÏ£© desc½µÐò
   select * from emp order by ename desc,sal;
4¡¢  like×Ö¶ÎÄ£ºýÕÒµ½ not likeÈ¡·ñ
   select * from emp where ename like '%R%'; 
   _±íʾһ¸ö×Öĸ
   select * from emp where ename like '_A%'; ±íʾÒÔAΪµÚÒ»¸ö×ÖĸµÄÐÕÃû
5¡¢              escapeתÒå
              select * from emp where ename like '/_A%' escape '/'; ‘¶Ô/ºóÃæµÄ_’½øÐÐתÒå
6¡¢  union Á¬½Ó
SQL> select job from emp where job='CLERK' union select job from emp where job='SALESMAN';
7¡¢  nulls first ¿ÕÖµÅÅÁзÅÔÚÇ° nulls last
select * from emp order by comm nulls first;
select * from emp order by comm nulls last;
Èý¡¢          º¯Êý
1¡¢×Ö·ûº¯Êý
Upper()×ÖĸСд±ä´óд
select upper('addb') from dual;
                        lower()´ó×Ö×Öĸ±äСд
     &nbs


Ïà¹ØÎĵµ£º

²»ÊÇORACLEµÄÎÊÌâ

                                          ²»ÊÇORACLEµÄÎÊÌâ
2009-12-30 15:00
    ......

ORACLE±¸·Ý²ßÂÔ(ORACLE BACKUP STRATEGY)

ORACLE±¸·Ý²ßÂÔ(ORACLE BACKUP STRATEGY)
2007Äê11ÔÂ02ÈÕ ÐÇÆÚÎå 16:03
¸ÅÒª
1¡¢Á˽âʲôÊDZ¸·Ý
2¡¢Á˽ⱸ·ÝµÄÖØÒªÐÔ
3¡¢Àí½âÊý¾Ý¿âµÄÁ½ÖÖÔËÐз½Ê½
4¡¢Àí½â²»Í¬µÄ±¸·Ý·½Ê½¼°ÆäÇø±ð
5¡¢Á˽âÕýÈ·µÄ±¸·Ý²ßÂÔ¼°ÆäºÃ´¦
  
Ò»¡¢Á˽ⱸ·ÝµÄÖØÒªÐÔ
¿ÉÒÔ˵£¬´Ó¼ÆËã»úϵͳ³öÊÀµÄÄÇÌìÆ𣬾ÍÓÐÁ˱¸·ÝÕâ¸ö¸ÅÄ ......

oracle ÐòÁÐ

ÐòÁУ¨SEQUENCE£©ÐòÁÐÊÇÒ»Êý¾Ý¿â¶ÔÏó£¬ÀûÓÃËü¿ÉÉú³ÉΨһµÄÕûÊý¡£Ò»¸öÐòÁеÄÖµÊÇÓÉÌØÊâµÄOracle³ÌÐò×Ô¶¯Éú³É£¬Òò´ËÐòÁбÜÃâÁËÔÚÓ¦Óà ²ãʵÏÖÐòÁжøÒýÆðµÄÐÔÄÜÆ¿¾±¡£¸ÃÐòÁÐΪÉÏÉýÐòÁУ¬ÓÉ1¿ªÊ¼£¬ÔöÁ¿Îª1£¬Ã»ÓÐÉÏÏÞ¡£ÔÚÉýÐòʱ£¬ÐòÁпɴӱÈ×îСֵ´óµÄÖµ¿ªÊ¼£¬È±Ê¡ÖµÎªÐòÁеÄ×îСֵ¡£¶ÔÓÚ½µ Ðò£¬ÐòÁпÉÓɱÈ×î´óֵСµÄÖµ¿ªÊ¼£¬È±Ê¡ ......

Oracle¸ß¼¶²éѯ


ʹÓÃOracleÌØÓеIJéѯÓï·¨, ¿ÉÒԴﵽʰ빦±¶µÄЧ¹û
1. Ê÷²éѯ
create table tree (
    id number(10) not null primary key,
    name varchar2(100) not null,
    super number(10 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ