JUST DO IT ~

          我只想當(dāng)個程序員

               摘要:   閱讀全文
          posted @ 2007-11-29 16:58 小高 閱讀(971) | 評論 (0)編輯 收藏
               摘要:   閱讀全文
          posted @ 2007-11-29 16:52 小高 閱讀(7305) | 評論 (0)編輯 收藏
               摘要: oracle SEQUENCE   閱讀全文
          posted @ 2007-11-29 09:47 小高 閱讀(313) | 評論 (0)編輯 收藏

          show parameter  cur%

          顯示參數(shù) 

          alter system set flush sharedpool ;






          顯示當(dāng)前用戶 oracle 當(dāng)前回話下面

          SQL> show  user ;
          USER 為"HR"



          plsql   數(shù)字 輸出 格式化  column  format 輸出 千

          SQL> col   pc    format  999,999,999,999,999.9
          SQL> select 8*333  pc from dual;

                              PC
          ----------------------
                         2,664.0


           ----------------------
                         2,664.0


          攝入 數(shù)字oracle



          SQL> select  round(  8*333.99999 , 2 )  pc from dual;

                              PC
          ----------------------
                         2,672.0






          plsql 命令 
           根據(jù)字段 不同 時候換行.

          SQL> break on job_id skip 2 ; 
          SQL
          > select first_name   ,  job_id  from  employees
            
          2  where rownum  < 10  order by job_id ;

           

          FIRST_NAME           JOB_ID
          -------------------- ----------
          Steven               AD_PRES


          Neena                AD_VP
          Lex


          Nancy                FI_MGR

           



          SELECT DECODE(TOTALQ, 0'No Requests',
             WAIT
          /TOTALQ || ' HUNDREDTHS OF SECONDS') "AVERAGE WAIT TIME PER REQUESTS"
            
          FROM V$QUEUE
           
          WHERE TYPE = 'COMMON';




          posted @ 2007-11-28 11:43 小高 閱讀(922) | 評論 (0)編輯 收藏
               摘要: where 1=1 and 'true' = ( case
          when t.bssign_ = 0 and t.ordbs_ in ('B','S') then 'true'
          else 'false'
          end) ;
            閱讀全文
          posted @ 2007-11-28 11:26 小高 閱讀(1053) | 評論 (2)編輯 收藏
               摘要:   閱讀全文
          posted @ 2007-11-20 00:34 小高 閱讀(742) | 評論 (1)編輯 收藏
               摘要:   閱讀全文
          posted @ 2007-11-20 00:24 小高 閱讀(2178) | 評論 (2)編輯 收藏

           

          update temp_Test_pm_order t
                 
          set ( t.stkname_  , t.STKTP_ ,  t.HIGHPRICE_ ,  t.LOWPRICE_ ,  t.PRICEUNIT_  ,  t.CURRENCY_CODE_ 
                    ,  t.ISSTOP_ ,t.DEALUNITNAME_ ,t.MARTUNIT_ ,  t.UPDEALNUM_ , t.LOWDEALNUM_ , t.BUY_UNIT_ ,t.SALE_UNIT_
                     , t.IV_UNIT_  )
            
          = (select stkname_  ,d.STKTP_ ,d.HIGHPRICE_ , d.LOWPRICE_ ,d.PRICEUNIT_ , d.CURRENCY_CODE_ 
                    , d.ISSTOP_, d.DEALUNITNAME_  , d.MARTUNIT_  , d.UPDEALNUM_ ,d.LOWDEALNUM_ , d.BUY_UNIT_ ,d.SALE_UNIT_
                    , d.IV_UNIT_ 
                
          from dl_stkcode d 
                
          where d.exchgcode_ = t.exchgcode_ and d.stkcode_ = t.stkcode_)

           

           

           

          UPDATE STATEMENT, GOAL = CHOOSE       
           UPDATE Object owner=IDMP Object name=TEMP_TEST_PM_ORDER     
            TABLE ACCESS FULL Object owner=IDMP Object name=TEMP_TEST_PM_ORDER     
            TABLE ACCESS BY INDEX ROWID Object owner=IDMP Object name=DL_STKCODE     
             INDEX UNIQUE SCAN Object owner=IDMP Object name=PK_DL_STKCODE     

           

           


          update temp_Test_pm_order t
                 
          set 
                     t.STKTP_         
          = (select d.STKTP_
                                           
          from dl_stkcode d
                                          
          where d.exchgcode_ = t.exchgcode_
                                            
          and d.stkcode_ = t.stkcode_),
                     t.HIGHPRICE_     
          = (select d.HIGHPRICE_
                                           
          from dl_stkcode d
                                          
          where d.exchgcode_ = t.exchgcode_
                                            
          and d.stkcode_ = t.stkcode_),
                     t.LOWPRICE_      
          = (select d.LOWPRICE_
                                           
          from dl_stkcode d
                                          
          where d.exchgcode_ = t.exchgcode_
                                            
          and d.stkcode_ = t.stkcode_),
                     t.PRICEUNIT_     
          = (select d.PRICEUNIT_
                                           
          from dl_stkcode d
                                          
          where d.exchgcode_ = t.exchgcode_
                                            
          and d.stkcode_ = t.stkcode_),
                     t.CURRENCY_CODE_ 
          = (select d.CURRENCY_CODE_
                                           
          from dl_stkcode d
                                          
          where d.exchgcode_ = t.exchgcode_
                                            
          and d.stkcode_ = t.stkcode_),
                     t.ISSTOP_        
          = (select d.ISSTOP_
                                           
          from dl_stkcode d
                                          
          where d.exchgcode_ = t.exchgcode_
                                            
          and d.stkcode_ = t.stkcode_),
                     t.DEALUNITNAME_  
          = (select d.DEALUNITNAME_
                                           
          from dl_stkcode d
                                          
          where d.exchgcode_ = t.exchgcode_
                                            
          and d.stkcode_ = t.stkcode_),
                     t.MARTUNIT_      
          = (select d.MARTUNIT_
                                           
          from dl_stkcode d
                                          
          where d.exchgcode_ = t.exchgcode_
                                            
          and d.stkcode_ = t.stkcode_),
                     t.UPDEALNUM_     
          = (select d.UPDEALNUM_
                                           
          from dl_stkcode d
                                          
          where d.exchgcode_ = t.exchgcode_
                                            
          and d.stkcode_ = t.stkcode_),
                     t.LOWDEALNUM_    
          = (select d.LOWDEALNUM_
                                           
          from dl_stkcode d
                                          
          where d.exchgcode_ = t.exchgcode_
                                            
          and d.stkcode_ = t.stkcode_),
                     t.BUY_UNIT_      
          = (select d.BUY_UNIT_
                                           
          from dl_stkcode d
                                          
          where d.exchgcode_ = t.exchgcode_
                                            
          and d.stkcode_ = t.stkcode_),
                     t.SALE_UNIT_     
          = (select d.SALE_UNIT_
                                           
          from dl_stkcode d
                                          
          where d.exchgcode_ = t.exchgcode_
                                            
          and d.stkcode_ = t.stkcode_),
                     t.IV_UNIT_       
          = (select d.IV_UNIT_
                                           
          from dl_stkcode d
                                          
          where d.exchgcode_ = t.exchgcode_
                                            
          and d.stkcode_ = t.stkcode_) 

           

           

           

           

           

           

             

           

          UPDATE STATEMENT, GOAL = CHOOSE       
           UPDATE Object owner=IDMP Object name=TEMP_TEST_PM_ORDER     
            TABLE ACCESS FULL Object owner=IDMP Object name=TEMP_TEST_PM_ORDER     
            TABLE ACCESS BY INDEX ROWID Object owner=IDMP Object name=DL_STKCODE     
             INDEX UNIQUE SCAN Object owner=IDMP Object name=PK_DL_STKCODE     
            TABLE ACCESS BY INDEX ROWID Object owner=IDMP Object name=DL_STKCODE     
             INDEX UNIQUE SCAN Object owner=IDMP Object name=PK_DL_STKCODE     
            TABLE ACCESS BY INDEX ROWID Object owner=IDMP Object name=DL_STKCODE     
             INDEX UNIQUE SCAN Object owner=IDMP Object name=PK_DL_STKCODE     
            TABLE ACCESS BY INDEX ROWID Object owner=IDMP Object name=DL_STKCODE     
             INDEX UNIQUE SCAN Object owner=IDMP Object name=PK_DL_STKCODE     
            TABLE ACCESS BY INDEX ROWID Object owner=IDMP Object name=DL_STKCODE     
             INDEX UNIQUE SCAN Object owner=IDMP Object name=PK_DL_STKCODE     
            TABLE ACCESS BY INDEX ROWID Object owner=IDMP Object name=DL_STKCODE     
             INDEX UNIQUE SCAN Object owner=IDMP Object name=PK_DL_STKCODE     
            TABLE ACCESS BY INDEX ROWID Object owner=IDMP Object name=DL_STKCODE     
             INDEX UNIQUE SCAN Object owner=IDMP Object name=PK_DL_STKCODE     
            TABLE ACCESS BY INDEX ROWID Object owner=IDMP Object name=DL_STKCODE     
             INDEX UNIQUE SCAN Object owner=IDMP Object name=PK_DL_STKCODE     
            TABLE ACCESS BY INDEX ROWID Object owner=IDMP Object name=DL_STKCODE     
             INDEX UNIQUE SCAN Object owner=IDMP Object name=PK_DL_STKCODE     
            TABLE ACCESS BY INDEX ROWID Object owner=IDMP Object name=DL_STKCODE     
             INDEX UNIQUE SCAN Object owner=IDMP Object name=PK_DL_STKCODE     
            TABLE ACCESS BY INDEX ROWID Object owner=IDMP Object name=DL_STKCODE     
             INDEX UNIQUE SCAN Object owner=IDMP Object name=PK_DL_STKCODE     
            TABLE ACCESS BY INDEX ROWID Object owner=IDMP Object name=DL_STKCODE     
             INDEX UNIQUE SCAN Object owner=IDMP Object name=PK_DL_STKCODE     
            TABLE ACCESS BY INDEX ROWID Object owner=IDMP Object name=DL_STKCODE     
             INDEX UNIQUE SCAN Object owner=IDMP Object name=PK_DL_STKCODE     

           

           

           

           

           

          posted @ 2007-10-19 13:05 小高 閱讀(165) | 評論 (0)編輯 收藏
          select  *
          from  col =199012

          select *
          from  col='199012'

          查的字段 col 是數(shù)字的 還是用col =199012 快.
          posted @ 2007-10-13 22:27 小高 閱讀(319) | 評論 (1)編輯 收藏
               摘要: 空對象錯誤。map  閱讀全文
          posted @ 2007-10-05 17:51 小高 閱讀(277) | 評論 (0)編輯 收藏
               摘要: select lower( column_name) ||','||'--'||comments
          from user_col_comments c
          where c.table_name = upper('acc_fundcap')   閱讀全文
          posted @ 2007-10-05 17:27 小高 閱讀(806) | 評論 (0)編輯 收藏
               摘要: 1. 一臺機器上裝了2個oracle, tns 文件2個都要更新一下 找到主要目錄.
          datalink 提示 ora-12154 tns 無法處理服務(wù)名
          2 遠(yuǎn)程控制的機器 tns file添加了 , 然后連接到其他的機器上的 在其他機器上創(chuàng)建 datalink 和 synonym .不查詢的時候不報錯..一旦查詢了 就開始說tns 沒沒找到.
            閱讀全文
          posted @ 2007-10-05 17:25 小高 閱讀(2134) | 評論 (0)編輯 收藏
               摘要: oracle 訪問 防火墻只要一個端口  閱讀全文
          posted @ 2007-10-05 16:52 小高 閱讀(366) | 評論 (0)編輯 收藏
               摘要: oracle 9i 一個表空間 導(dǎo)入到另外一個表空間   閱讀全文
          posted @ 2007-10-05 16:49 小高 閱讀(1708) | 評論 (0)編輯 收藏


          set echo on

          set echo off

          表示打開或者關(guān)閉查詢的顯示


          三個環(huán)境變量的設(shè)置  
            echo         是否現(xiàn)實執(zhí)行的命令內(nèi)容  
            feedback       是否現(xiàn)實     *   rows   selected  
            pagesize         頁面大小設(shè)置  
             
            可分開寫  
            set   echo   on/off  
            set   feedback   on/off  
            set   pagesize   999

          set echo on,則顯示出文件中的每條命令和該命令執(zhí)行的結(jié)果,如果設(shè)為set echo off,則只顯示命令執(zhí)行的結(jié)果,而不顯示出命令本身。

          posted @ 2007-09-25 00:33 小高 閱讀(1624) | 評論 (0)編輯 收藏
          僅列出標(biāo)題
          共20頁: First 上一頁 12 13 14 15 16 17 18 19 20 下一頁 

          導(dǎo)航

          <2025年7月>
          293012345
          6789101112
          13141516171819
          20212223242526
          272829303112
          3456789

          統(tǒng)計

          常用鏈接

          留言簿(3)

          隨筆分類(352)

          收藏夾(19)

          關(guān)注的blog

          手冊

          搜索

          積分與排名

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 虞城县| 福海县| 县级市| 军事| 通海县| 大田县| 霍山县| 新昌县| 长阳| 宁都县| 湖口县| 平乡县| 竹溪县| 乐陵市| 铁力市| 百色市| 柞水县| 永顺县| 三门峡市| 安龙县| 舟曲县| 临洮县| 乌恰县| 九龙县| 宜丰县| 视频| 岳西县| 磐安县| 通海县| 喀喇| 舟山市| 彭水| 谢通门县| 左贡县| 高碑店市| 全州县| 姚安县| 班玛县| 日照市| 南川市| 镇巴县|