Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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±í¿Õ¼ä²Ù×÷Ïê½â
  1
  2
  3×÷Õߣº   À´Ô´£º    ¸üÐÂÈÕÆÚ£º2006-01-04 
  5
  6 
  7½¨Á¢±í¿Õ¼ä
  8
  9CREATE TABLESPACE data01
 10DATAFILE '/ora ......

Oracle±í¿Õ¼ä¹ÜÀí

extent--×îС¿Õ¼ä·ÖÅ䵥λ --tablespace management
block --×îСi/oµ¥Î»      --segment    management
create tablespace james
datafile '/export/home/oracle/oradata/james.dbf'
size 100M ¡¡¡¡¡¡¡¡¡¡¡¡--³õʼµÄÎļþ´óС¡¡
autoextend On¡¡¡¡¡¡¡¡ --×Ô¶¯Ôö³¤
next 10M¡ ......

ORACLE LOB×Ö¶Î ²»ÄÜÓÃunion ²éѯ

lob×ֶβ»ÄÜ×ögroup   by£¬¶øunionÖÐÐèҪʹÓÃgroup   by¹ýÂ˵ôÖØ¸´¼Í¼£¬ËùÒÔ²»ÐР¡£ ÓÃunion  all¾Í¿ÉÒÔÁË¡£
Áí£ºunion ºÍ union allÇø±ð£º
       UNIONÔÚ½øÐбíÁ´½Óºó»áɸѡµôÖØ¸´µÄ¼Ç¼£¬ËùÒÔÔÚ±íÁ´½Óºó»á¶ÔËù²úÉúµÄ½á¹û¼¯½øÐÐÅÅÐòÔËË㣬ɾ³ýÖØ¸´µÄ¼Ç¼ÔÙ·µ» ......

¡¾×ª¡¿Oracle·þÎñÆ÷µÄ³£ÓÃÃüÁîÐÐÏêϸ½²½â

1.Êý¾Ý¿â¹ÜÀíÏà¹Ø
¡¡¡¡bbed.exe¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡Êý¾Ý¿éä¯ÀÀºÍ±à¼­¹¤¾ß
¡¡¡¡dbv.exe¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡  Êý¾ÝÎļþÂß¼­¼ì²â¹¤¾ß
¡¡¡¡exp.exe¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡  Êý¾Ýµ¼³ö¹¤¾ß
¡¡¡¡imp.exe¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡  Êý¾Ýµ¼È빤¾ß
¡¡¡¡mig.exe¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡  Êý¾Ý¿âÒÆÖ²¹¤¾ß
¡¡¡¡nmumigrate.exe¡¡¡¡¡¡¡¡ Da ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ