CASE å¼ ã¨ DECODE é¢æ°ã®éã æ¨æº SQL ã® CASE å¼ ã¨ãªã©ã¯ã«ã® SQL ç¹æã® DECODE é¢æ°ã¯ãã»ã¼åãæ©è½ããã¡ãCASE å¼ ã DECODE é¢æ° ãç絡è©ä¾¡(â»)ã§ãããããã®2ã¤ã¯ NULL ã®åãæ±ãæ¹ã§å¤§ããç°ãªã£ã¦ããã (â») ç絡è©ä¾¡(ã·ã§ã¼ããµã¼ãããï¼short circuit evaluation)ï¼æ¡ä»¶ã«è©²å½ãããã®ãè¦ã¤ããã¨å¾ç¶ã®æ¡ä»¶ã¯è©ä¾¡ããªã DECODE é¢æ° ããç¥ãããé常ã«ä¾¿å©ãªå¤æé¢æ°ãå¼æ°ãããå¤ã®ã¨ãã«å¥ã®å¤ã«å¤æããé¢æ°ã§ããã DEOCDE ã®ãã©ã¡ã¼ã¿æ°ã®ä¸é㯠255 ã§ãããå½ç¶æ¡ä»¶æå®ã¯ãã以ä¸(æ¡ä»¶ã¨çµæ㧠2 ãã©ã¡ã¼ã¿ã®ãã 127 以ä¸)ã«ãªãã CASE å¼ ãã»ã¼åæ°ã®ä¸éãããã æ¤ç´¢ CASE å¼ ã®ããã«è©ä¾¡ããå¼ãåã
ã«è¨å®ã§ããªããããç¯å²æå®ãªã©ã®æ¡ä»¶æå®ãåºæ¬çã«è¡ããªã
{{#tags}}- {{label}}
{{/tags}}