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

¹ØÓÚoracleÖÐʹÓÃnvlº¯Êýʱ£¬¶Ô¿Õ×Ö·û´®µÄÀí½â

 ×òÌìÏ°à֮ǰÔÚ³ÌÐòÖÐÓöµ½ÁËÒ»¸öʹÓÃnvlµÄsqlÓï¾ä£¬ÏàÐÅÕâ¸öº¯Êý´ó¼Ò¶¼Ó¦¸ÃʹÓùý£¬²¢ÇÒÓ¦¸ÃÊǺܼòµ¥µÄ¡£
ÒòΪ֮ǰ×öµÄÊý¾Ý¿âÒÆֲʱÓöµ½¹ýÕâ¸öÎÊÌ⣬ËùÒÔ½ñÌìÄÃÀ´ÔÚÕâÀï¼ÇÔØһϡ£
ÆäÖÐÓÐÒ»¶ÎwhereÌõ¼þÊÇÕâÑùµÄ£º
and ((nvl('', ' ') <> ' ' and a.benifitvchno like '%%') or
       (nvl('', ' ') = ' ' and a.benifitvchno like '%'))
ÒÔÉÏÊÇÔÚplsqlÖдò³öµÄ£¬»ù±¾ÉϵÄÒâ˼¾ÍÊÇÈç¹ûa.benifitvchnoÊÇ¿ÕÖµµÄ»°£¬ÏÂÃæµÄÌõ¼þ»á³ÉÁ¢£¬
Èç¹ûÓÐÖµµÄ»°ÉÏÃæµÄÓï¾ä»á³ÉÁ¢¡£Êµ¼ÊÉÏÔÚnvlºóÃæµÄ‘’ÖÐÓ¦¸ÃÊÇÄǸöa.benifitvchnoµÄÖµ£¬ÒòΪÔÚÕâÀïÊÇ¿Õ£¬ËùÒÔÏÔʾΪ‘’¡£
ÕâÀïÒª×ÅÖØ˵Ã÷µÄÊÇoracle¶ÔÓÚ‘’µÄ´¦ÀíĬÈÏÊÇnullµÄ£¬¶ø‘ ’²ÅÊÇ¿Õ×Ö·û´®£¬£¨Ç°ÃæÊÇ‘’£¬ºóÃæÊÇ‘ ’£¬ÕâÀïÇø±ðÊǺóÕßÖмäÓпոñ£©£¬ËùÒÔ¾ÍÊÇÕâÀïÊÇÓÐÇø±ðµÄ£¬Òò´ËÈç¹û½«ÉÏÃæÓï¾äдΪ¶¼ÊÇûÓпոñµÄ‘’£¬½á¹û¿Ï¶¨ÊDz»¶ÔµÄ¡£
²¹³ä£º½ñÌìÔÚcsdnÉÏÎÊÁËÏ£¬
       ¿ÉÒÔʹÓÃÒÔÏÂÓï¾äʵÑ飺
      (1)
select

1

from
dual
where
nvl(
''
,
''
)
=

''
        (2)select
1 from
dual where
nvl('', '') is null
      ÒÔÉÏÁ½¾äÖеÚÒ»¾ä²»»áÓÐÖµ£¬µÚ¶þ¾ä²Å»áÓÐÖµ¡£
      ÕýÏñ
wh62592855
ÅóÓÑ˵µÄ£ºnull=null£¬·µ»ØÓ¦¸ÃÊÇFALSE¡£Ö»Òª¼ÇסNULL²»µÈÓÚÈκÎÖµ¾ÍÊÇÁË£¬Ò²²»µÈÓÚNULL¡£
Ìش˷dz£¸Ðл
wildwave£¬
wh62592855
Á½Î»ÅóÓѵĽâ´ð¡£
                        


Ïà¹ØÎĵµ£º

ORACLEÊý¾Ý¿âµÄÊý¾Ýµ¼Èë·½·¨

ÒÔ ÏÂÆßÖÖÊý¾Ýµ¼Èë·½·¨Äĸö×îÊÊÓÃÐèÒªÕë¶Ô¾ßÌåÇé¿ö¾ßÌå·ÖÎö£¬ÎÒÒ²¸½´øÁоÙÁËÓ°Ïìµ¼ÈëËٶȵĸ÷ÖÖÒòËع©Õå×á£ÎªÁ˱Ƚϸ÷ÖÖÊý¾Ýµ¼Èë·½·¨µÄЧ¹û£¬ÎÒ´´½¨ÁËʾÀý±í ºÍÊý¾Ý¼¯£¬²¢Óø÷ÖÖ·½·¨µ¼ÈëʾÀýÊý¾Ý¼¯À´¼ÆËã×ÜÌåµ¼Èëʱ¼äºÍµ¼Èë½ø³ÌÕ¼Óà CPU ʱ¼ä£¬ÕâÀïµÃ³öµÄʱ¼ä½ö¹©²Î¿¼¡£ÐèҪ˵Ã÷µÄÊÇ£¬½¨ÒéÄãʹÓà Oracle 9i ÆóÒµ°æÊý¾Ý¿â£¬ ......

oracleµÄnvlº¯ÊýµÄÓ÷¨

oracleµÄnvlº¯ÊýµÄÓ÷¨ ͨ¹ý²éѯ»ñµÃij¸ö×ֶεĺϼÆÖµ£¬Èç¹ûÕâ¸öֵλnull½«¸ø³öÒ»¸öÔ¤ÉèµÄĬÈÏÖµ
select nvl(sum(t.dwxhl),1) from tb_jhde t where zydm=-1ÕâÀï¹ØÐĵÄnvlµÄÓ÷¨£¬nvl£¨arg,value£©´ú±íÈç¹ûÇ°ÃæµÄargµÄֵΪnullÄÇô·µ»ØµÄֵΪºóÃæµÄvalue
Èç: NVL(a,b)¾ÍÊÇÅжÏaÊÇ·ñÊÇNULL,Èç¹û²»ÊÇ·µ»ØaµÄÖµ£¬Èç¹ ......

ORACLE³£ÓÃת»»º¯Êý¡¢ÊýÖµº¯Êý¡¢×Ö·û´®º¯Êý½éÉÜ

±¾ÎÄÀ´×Ô£ºWWW.NC21.CN  ÐÂÊÀ¼Íƽ̨Íø  
±¾Îĸü¶à½«»á½éÉÜÈý˼ÔÚÈÕ³£Öо­³£»áÓõ½µÄ£¬»òÕßËäÈ»ºÜÉÙÓõ½£¬µ«ÊǸоõͦÓÐÒâ˼µÄһЩº¯Êý¡£·Ö¶þÀà½éÉÜ£¬·Ö±ðÊÇ£º
¡¡¡¡ÖøÃûº¯Êýƪ¡¡£­¾­³£Óõ½µÄº¯Êý
¡¡¡¡·ÇÖøÃûº¯Êýƪ£­¼´ËäÈ»ºÜÉÙÓõ½£¬µ«Ä³Ð©Çé¿öÏÂÈ´ºÜʵÓÃ
¡¡¡¡×¢£ºN±íʾÊý×ÖÐÍ£¬C±íʾ×Ö·ûÐÍ£¬D±íʾ ......

ÅäÖÃweblogicÁ¬½ÓoracleµÄÊý¾ÝÔ´

 Name:JDBC-DEV1
JNDI Name:jdbc.datasource.DS1  
AdminServer
Row Prefetch Size:  48
Stream Chunk Size:256
URL:jdbc:oracle:thin:@192.168.0.118:1521:AAT
Driver Class Name:oracle.jdbc.OracleDriver
Á¬½Óoracle¼°postgresqlµÄÁ¬½Ó×Ö·û´®
package com.lwf.eus.util;
import java.sql.Conn ......

OracleÈëÃűʼÇ

¸Õ¿ªÊ¼Ê¹ÓÃOracle£¬×öһЩ±Ê¼ÇÒÔ»ýÀÛ¡£
2009Äê11ÔÂ6ÈÕ  ÏîÄ¿DSSC£¬·þÎñÆ÷ÉÏ´´½¨Êý¾Ý¿â²¢µ¼ÈëÊý¾Ý¡£
´´½¨±í¿Õ¼ä£º
create tablespace ts_stone
logging
datafile 'xxx.dbf'
size 100m
autoextend on
next 100m maxsize 2048m
extent management local;
ÁÙʱ±í¿Õ¼ä£º
create temporary tablespace temp_ts ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ