<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    freefly
    一門技術,如果不能講出來,那么就是沒有理解,如果不能很好的講出來,那么就是理解不夠透徹!
    posts - 9,comments - 3,trackbacks - 0
    1. create view

              ORACLE:    CREATE OR REPLACE VIEW V_FA_ADD_CO AS

                 SQLSEVER:    IF EXISTS (SELECT 1
                                                                FROM  sysobjects
                                                                WHERE  idobject_id ('V_FA_ADD_CO')
                                                                 AND   type = 'V')
                                        DROP VIEW V_FA_ADD_CO;
                                        CREATE VIEW V_FA_ADD_CO AS

        
    2. the equal between join and (+)
          
           the table(its fields stay with (+)) right  join another  corresponding   table.
           for example: select * from a,b where a.id=b.id(+)
                   equals  select * from b rigth join a on a.id=b.id
                   equals  select * from a left join a on a.id=b.id

            notes:join先匹配有對應的記錄,
                  (+)卻是按順序來的
     

        3. substr,substring
         
    for example: there is a table's field "userName" and it's value is "wanghuiling".
           sqlserver: substring(userName,0,4) = "wan",substring(userName,1,4) = "wang"
           oracle:  substr(userName,0,4)="wang",substr(userName,1,4)="wang"
       
     4. link sign
         sqlserver: "+"
        
    oracle:"||"
     
    5. update a table's some fields

         for example:there are two tables: students1 and students2

         sqlserver:update students     (can't use alias)
                       set name=s2.name,sex=s2.sex,age=s2.age,tel=s2.tel
                       from students s2 where s1.id=s2.id;
         oracle: update students1 s1
                   set (name,sex,age,tel)=
                   (select name,sex,age,tel from students2 s2 where s1.id=s2.id);

    6. Date
        for example:there are a field of  date type:input_date  and its value is 2007-08-09.   
        sqlserver : year(input_date)=2007,month(input_date)=8,day(input_date)=9
         oracle : to_char(input_date,'YYYY')=2007, to_char(input_date,'MM')=8, to_char(input_date,'DD')=9

         sDate : a java String variable
         sqlserver : input_date = '"+sDate+"' 
         oracle : input_date =  to_char( '" + sDate + "',' 'YYYY-MM-DD'')

    posted on 2006-12-31 15:42 freefly 閱讀(578) 評論(0)  編輯  收藏 所屬分類: Database

    只有注冊用戶登錄后才能發(fā)表評論。


    網(wǎng)站導航:
     
    主站蜘蛛池模板: 日本免费一区二区三区最新 | 77777亚洲午夜久久多人| ASS亚洲熟妇毛茸茸PICS| 亚洲一级毛片免费观看| 久久青青草原亚洲av无码app| 成人免费区一区二区三区| 伊人久久大香线蕉亚洲五月天 | 91免费国产精品| 亚洲综合区图片小说区| 成人免费黄色网址| 最新亚洲卡一卡二卡三新区| 免费的一级片网站| 黄色网址在线免费观看| 中文字幕久久亚洲一区| a级成人免费毛片完整版| 亚洲高清在线播放| 99久久99这里只有免费费精品| 国产精品亚洲自在线播放页码| 麻豆成人精品国产免费| 亚洲 欧洲 自拍 另类 校园| 在线永久免费观看黄网站| 一级美国片免费看| 亚洲人成网址在线观看| 成年大片免费视频| 一区二区免费国产在线观看| 亚洲av无码不卡一区二区三区| 亚洲黄色免费在线观看| 色偷偷亚洲第一综合| 亚洲乳大丰满中文字幕| 国产大片免费网站不卡美女| 色婷婷六月亚洲综合香蕉| 中文字幕在亚洲第一在线| 亚洲免费在线视频观看| 黄色免费网址在线观看| 亚洲一区二区电影| 国产一级一片免费播放i| 久久青草91免费观看| 国产成人精品免费视| 国产精品久久亚洲一区二区| 永久中文字幕免费视频网站| 99免费在线视频|