{"id":251268,"date":"2022-09-03T08:56:37","date_gmt":"2022-09-03T00:56:37","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=251268"},"modified":"2022-08-29T08:57:18","modified_gmt":"2022-08-29T00:57:18","slug":"oracle-for-linux","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/oracle-for-linux.html","title":{"rendered":"\u7b80\u5355\u4ecb\u7ecdOracle\u4e2dfor\u5faa\u73af\u7684\u4f7f\u7528\u65b9\u6cd5"},"content":{"rendered":"
\u5bfc\u8bfb<\/td>\n | \u8fd9\u7bc7\u6587\u7ae0\u4ecb\u7ecd\u4e86Oracle\u4e2dfor\u5faa\u73af\u7684\u4f7f\u7528\u65b9\u6cd5\uff0c\u6587\u4e2d\u901a\u8fc7\u793a\u4f8b\u4ee3\u7801\u4ecb\u7ecd\u7684\u975e\u5e38\u8be6\u7ec6\u3002\u5bf9\u5927\u5bb6\u7684\u5b66\u4e60\u6216\u5de5\u4f5c\u5177\u6709\u4e00\u5b9a\u7684\u53c2\u8003\u501f\u9274\u4ef7\u503c\uff0c\u9700\u8981\u7684\u670b\u53cb\u53ef\u4ee5\u53c2\u8003\u4e0b<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n Oracle for in loop \u5faa\u73af\u7684\u4e00\u4e9b\u5b9e\u4f8b,\u4ee5\u4f5c\u5b66\u4e60\u548c\u52a0\u5f3a\u4f7f\u7528\u719f\u7ec3\u5ea6\u53ca\u573a\u666f\u5e94\u7528.<\/p>\n \u4e00\u4e9b\u6280\u5de7<\/strong><\/div>\n for \u8bed\u53e5\u540e\u9762\u7684 loop end loop \u53ef\u4ee5\u7c7b\u6bd4\u6210 c#\/java \u7b49\u7f16\u7a0b\u8bed\u8a00 for \u8bed\u53e5\u540e\u9762\u7684\u8bed\u53e5\u5757\u7b26\u53f7(\u82b1\u62ec\u53f7{}), \u4ee5\u4fbf\u7406\u89e3\u548c\u4f7f\u7528.<\/p>\n \u4e00\u4e9b\u5b9e\u4f8b<\/strong><\/div>\n \u5faa\u73af\u8f93\u51fa\u6570\u503c<\/strong><\/span><\/div>\n -- \u5faa\u73af\u8f93\u51fa\u6570\u503c\r\nbegin\r\n for i in 1 .. 100 loop\r\n sys.dbms_output.put_line(i);\r\n end loop;\r\nend;<\/pre>\n |