æ示ã«ã¼ã½ã«ã¨æé»ã«ã¼ã½ã« ã«ã¼ã½ã«(CURSOR) ã¨ã¯ã主ã«åãåããï¼ãã¼ã¿æä½ãå«ãï¼ãè¡ãªãããã®æ
å ±ã管çããä½æ¥é åãããããããã®ãã¿ã°ãã®ãããªãã®ã§ããã ãã®ã«ã¼ã½ã«ã«ã¦ã¼ã¶ã¼ãååãä»ãã¦ãããã®ã æ示ã«ã¼ã½ã« ã¨å¼ã¶ã æé»ã«ã¼ã½ã« ã§ã¯ Oracle ã«ãã£ã¦ç¨æããã¦ããååã®ç¡ãä½æ¥é åã使ç¨ãã¦ããã æ示ã«ã¼ã½ã«ã使ç¨ããã¨ã«ã¼ã½ã«ã®åå©ç¨ã %ROWTYPE ãªã©ã使ç¨ãã¦ã¡ã¿ãã¼ã¿ï¼å®ç¾©æ
å ±ï¼ã PL/SQL ä¸ãªã©ãã容æã«ãã§ããï¼åãåºãï¼ãããã¨ãã§ããã æé»ã«ã¼ã½ã«ã使ç¨ãã SELECT æã«ãã FOR ã«ã¼ã ã«ã¼ã½ã«ãå®ç¾©ããã« FOR ã®å¶å¾¡ãªã¹ãã«è¨è¿°ãããã¨ã§ã«ã¼ãå¤æ°ã«çµæã¬ã³ã¼ãã代å
¥ããã SELECT ããçµæã»ãããåå¨ããªãå ´åã«ã¯ã«ã¼ãå¦çã¯çºçããªãã SQLPlus ã®å ´åã«ã¯å®è¡ã®åã« SET SERV
{{#tags}}- {{label}}
{{/tags}}