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

ORACLE ³£ÓõÄSQLÓï·¨ºÍÊý¾Ý¶ÔÏó

 Ò».Êý¾Ý¿ØÖÆÓï¾ä (DML) ²¿·Ö
            1.Insert (ÍùÊý¾Ý±íÀï²åÈë¼Ç¼µÄÓï¾ä)
            Insert INTO ±íÃû(×Ö¶ÎÃû1, ×Ö¶ÎÃû2, ……) VALUES ( Öµ1, Öµ2, ……);
            Insert INTO ±íÃû(×Ö¶ÎÃû1, ×Ö¶ÎÃû2, ……) Select (×Ö¶ÎÃû1, ×Ö¶ÎÃû2, ……) from ÁíÍâµÄ±íÃû;
            ×Ö·û´®ÀàÐ͵Ä×Ö¶ÎÖµ±ØÐëÓõ¥ÒýºÅÀ¨ÆðÀ´, ÀýÈç: ’GOOD DAY’
            Èç¹û×Ö¶ÎÖµÀï°üº¬µ¥ÒýºÅ’ ÐèÒª½øÐÐ×Ö·û´®×ª»», ÎÒÃÇ°ÑËüÌæ»»³ÉÁ½¸öµ¥ÒýºÅ''.
            ×Ö·û´®ÀàÐ͵Ä×Ö¶ÎÖµ³¬¹ý¶¨ÒåµÄ³¤¶È»á³ö´í, ×îºÃÔÚ²åÈëÇ°½øÐ㤶ÈУÑé.
            ÈÕÆÚ×ֶεÄ×Ö¶ÎÖµ¿ÉÒÔÓõ±Ç°Êý¾Ý¿âµÄϵͳʱ¼äSYSDATE, ¾«È·µ½Ãë
            »òÕßÓÃ×Ö·û´®×ª»»³ÉÈÕÆÚÐͺ¯ÊýTO_DATE(‘2001-08-01’,’YYYY-MM-DD’)
            TO_DATE()»¹ÓкܶàÖÖÈÕÆÚ¸ñʽ, ¿ÉÒԲο´ORACLE DOC.
            Äê-ÔÂ-ÈÕ Ð¡Ê±:·ÖÖÓ:Ãë µÄ¸ñʽYYYY-MM-DD HH24:MI:SS
            Insertʱ×î´ó¿É²Ù×÷µÄ×Ö·û´®³¤¶ÈСÓÚµÈÓÚ4000¸öµ¥×Ö½Ú, Èç¹ûÒª²åÈë¸ü³¤µÄ×Ö·û´®, Ç뿼ÂÇ×Ö¶ÎÓÃCLOBÀàÐÍ,
            ·½·¨½èÓÃORACLEÀï×Ô´øµÄDBMS_LOB³ÌÐò°ü.
            InsertʱÈç¹ûÒªÓõ½´Ó1¿ªÊ¼×Ô¶¯Ôö³¤µÄÐòÁкÅ, Ó¦¸ÃÏȽ¨Á¢Ò»¸öÐòÁкÅ
            Create SEQUENCE ÐòÁкŵÄÃû³Æ (×îºÃÊDZíÃû+ÐòÁкűê¼Ç) INCREMENT BY 1 START WITH 1
      


Ïà¹ØÎĵµ£º

sql 2005 ´æ´¢¹ý³Ì·ÖÒ³ java ´úÂë

 create PROCEDURE pagelist
@tablename nvarchar(50),
@fieldname nvarchar(50)='*',         
@pagesize int output,--ÿҳÏÔʾ¼Ç¼ÌõÊý
@currentpage int output,--µÚ¼¸Ò³
@orderid nvarchar(50),--Ö÷¼üÅÅÐò
@sort int,--ÅÅÐò·½Ê½£¬1±íʾÉýÐò£¬0±íʾ½µÐòÅÅÁÐ ......

ROLLUPºÍCUBEÓï¾ä¡£ ORACLE·Ö×éͳ¼Æ

ROLLUPºÍCUBEÓï¾ä¡£
OracleµÄGROUP
BYÓï¾ä³ýÁË×î»ù±¾µÄÓï·¨Í⣬»¹Ö§³ÖROLLUPºÍCUBEÓï¾ä¡£Èç¹ûÊÇROLLUP(A, B, C)µÄ»°£¬Ê×ÏÈ»á¶Ô(A¡¢B¡¢C)½øÐÐGROUP
BY£¬È»ºó¶Ô(A¡¢B)½øÐÐGROUP BY£¬È»ºóÊÇ(A)½øÐÐGROUP BY£¬×îºó¶ÔÈ«±í½øÐÐGROUP BY²Ù×÷¡£Èç¹ûÊÇGROUP BY
CUBE(A, B, C)£¬ÔòÊ×ÏÈ»á¶Ô(A¡¢B¡¢C)½øÐÐGROUP
BY£¬È»ºóÒÀ´ÎÊÇ(A¡ ......

ORACLE ÔÚnot inÖÐʹÓÃnullµÄÎÊÌâ

ÒÔÇ°»¹×¨ÃÅС×ܽá¹ýÒ»ÏÂORACLEÖйØÓÚNULLµÄһЩÎÊÌ⣬ÅöÇɽñÌìÔÚ¿´ÊéµÄ¹ý³ÌÖÐÓÖ¿´µ½ÁËÁíÍâÒ»¸öÒÔǰû·¢ÏÖµÄÐèҪעÒâµÄµØ·½£¬ÄǾÍÊÇÔÚnot inÖÐʹÓÃnullµÄÎÊÌâ¡£
SQL> select * from dept;
    DEPTNO DNAME          LOC
---------- -------------- ---- ......

ÐÞ¸ÄORACLE×î´ó»á»°Êý

ÐÞ¸ÄORACLE×î´ó»á»°Êý ²é¿´µ±Ç°oracle×î´ó»á»°Êý show parameter Ìõ¼þ Ìõ¼þ¿ÉÒÔʹÓòÎÊýÃûÖаüº¬µÄ¼¸¸ö×Öĸ£¬Èçshow parameter process½«ÏÔʾ NAME TYPE VALUE
------------------------------------ ----------- ------
aq_tm_processes integer 0
db_writer_processes integer 1
gcs_server_p ......

linuxÏ°²×°oracle10xe°æ

radhat 5.2Ï°²×°oracle10g
1¡¢ÏµÍ³ÐèÇó£º
Äڴ棺ÖÁÉÙ512mb£¬ÍƼöÓÃ1g£»
Ó²ÅÌ£º·þÎñÆ÷ÖÁÉÙ60g£»
£¨Ò»°ãÇé¿öÏÂÓ²¼þ¶¼ÄÜ·ûºÏÒªÇó£©
Èí¼þ°ü£ºglibc-2.3.2, libaio-0.3.96
½»»»¿Õ¼ä:
RAM: 0~256MB,   SWAP: 3 ±¶ RAM ´óС
RAM: 256~512MB,  SWAP: 2 ±¶ RAM ´óС
RAM: >=512MB,   SWAP: 10 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ