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

Oracleѧϰ±Ê¼Çժ¼8

   <1> ORACLEµÄʹÓÃ
       Æô¶¯ºÍ¹Ø±Õ
       ¹¤¾ß²Ù×÷ORACLE -- sql*plus
                        plsql developer
  <2> SQLÃüÁî
     4´óÀà
       DDL Êý¾Ý¶¨ÒåÓïÑÔ -  ½¨Á¢Êý¾Ý¿â¶ÔÏó
           create /alter/ drop/ truncate
       DML Êý¾Ý²Ù×ÝÓïÑÔ - Êý¾ÝµÄ²é¿´ºÍά»¤
           select / insert /delete /update
       TCL ÊÂÎñ¿ØÖÆÓïÑÔ -  Êý¾ÝÊÇ·ñ±£´æµ½Êý¾Ý¿âÖÐ
           commit / rollback / savepoint
       DCL Êý¾Ý¿ØÖÆÓïÑÔ -- ²é¿´¶ÔÏóµÄȨÏÞ
           grant / revoke /ÈçºÎ½¨Óû§
  <3> ×Ó²éѯºÍ¹ØÁª²éѯ  *********************
     ¹ØÁª²éѯ - 3¸ö±íµÄ¹ØÁª
         select dname,ename
           from dept a, emp b
          where  a.deptno = b.deptno;
     ×Ó²éѯ -- (1)дÔÚwhere×Ó¾äÖÐ
               (2) ×Ó²éѯ¿ÉÒÔ³öÏÖÔÚ×ֶεÄλÖÃÉÏ
       (1) select * from emp where sal > (
              select avg(sal) from emp );
           --¸ßÓÚƽ¾ù¹¤×ʵÄËùÓÐÔ±¹¤
 
       (2) select * from emp a where sal > (
            &


Ïà¹ØÎĵµ£º

Javaµ÷ÓÃOracleÊý¾Ý¿âµÄ·ÖÒ³´æ´¢¹ý³Ì

 ×î½üÏîÄ¿½ø¶È±È½Ï»ºÂý£¬³õ²½Ñо¿ÁËÒ»ÏÂOracleµÄ´æ´¢¹ý³Ì£¬½«´úÂëÌù³öÀ´¡£
 Ê×ÏÈÏÈÌù³öÀ´OracleµÄ·ÖÒ³·ÖÒ³´æ´¢¹ý³Ì´úÂë°É¡£
 1.ÕâÊÇ°üµÄ´úÂë
 create or replace package DB_Oper is
  -- Author  : LIUBING
  -- Created : 2009-10-28 15:01:30
  -- Purpose : ²âÊÔOracleµ ......

oracleÓï¾äËæд

 
ΪÁËÈ·¶¨±í¿Õ¼äÖаüº¬ÄÇЩÄÚÈÝ£¬ÔËÐУº
select owner,segment_name,segment_type
from dba_segments
where tablespace_name='<name of tablespace>'
 
 
²éѯ±í¿Õ¼ä°üº¬¶àÉÙÊý¾ÝÎļþ¡£
select file_name, tablespace_name
from dba_data_files
where tablespace_name ='<name of t ......

spring+hibernateÖд¦Àíoracle BLOB

 1¡¢ÅäÖÃhibernate£º
    1.1¡¢ÅäÖÃhibernateµÄ³Ö¾ÃÀàÎļþÖжÔÓ¦µÄ×Ö¶ÎΪbyte[]ÀàÐÍ
    2.2¡¢ÅäÖÃhibernateµÄÀàÓ³ÉäÎļþÖжÔÓ¦µÄ×Ö¶ÎtypeΪ 
            org.springframework.orm.hibernate3.support.BlobByteArray ......

Oracleѧϰ±Ê¼Çժ¼5

 Êý¾Ý¿â¶ÔÏó
<1>±í(Ô¼Êø)
<2>ÈçºÎ×Ô¶¯±àºÅ
SQLserver
  --IDENTITYÊôÐÔ
  create table test(
    xh int identity(1,2) primary key,
    name varchar(20)
);
  insert into test(name) values ('mike');
ORACLE
  Ò»¸ö¶ÔÏó(ÐòÁÐsequenc ......

Oracleѧϰ±Ê¼Çժ¼7

 ÓÃ;: <1>Ä£¿é»¯
<Àý×Ó> --¹«Ë¾µÄÔ±¹¤µÄ¹ÜÀí
         1.Ôö¼ÓÒ»¸öÔ±¹¤
         2.Ô±¹¤ÀëÖ°
Óô洢¹ý³ÌºÍº¯ÊýÀ´ÊµÏÖ
1.Ôö¼ÓÒ»¸öÔ±¹¤
create sequence seq1 start with 7935;
create or replace function insert ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ