{"id":84481,"date":"2026-07-26T13:34:37","date_gmt":"2026-07-26T05:34:37","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/84481.html"},"modified":"2026-07-26T13:34:37","modified_gmt":"2026-07-26T05:34:37","slug":"%e8%af%a1%e5%bc%82%e7%ba%bf%e4%b8%8abug%ef%bc%9aoracle%e6%a0%87%e9%87%8f%e5%ad%90%e6%9f%a5%e8%af%a2%e8%bf%94%e5%9b%9e%e5%a4%9a%e8%a1%8c%ef%bc%8c%e6%95%b0%e6%8d%ae%e5%ba%93%e6%ad%a3%e5%b8%b8%e5%89%8d","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/84481.html","title":{"rendered":"\u8be1\u5f02\u7ebf\u4e0aBUG\uff1aOracle\u6807\u91cf\u5b50\u67e5\u8be2\u8fd4\u56de\u591a\u884c\uff0c\u6570\u636e\u5e93\u6b63\u5e38\u524d\u7aef\u65e0\u6570\u636e\u89e3\u51b3\u5b9e\u5f55"},"content":{"rendered":"<p style=\"margin-left:.0001pt;margin-right:0;text-align:justify\">\u4e00\u3001\u95ee\u9898\u73b0\u8c61\u4e0e\u6839\u56e0<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\">\u5728HIS\u7cfb\u7edf\u836f\u54c1\u67e5\u8be2\u4e1a\u52a1\u4e2d&#xff0c;\u4e00\u6bb5\u591a\u8868\u5173\u8054\u67e5\u8be2SQL\u5b58\u5728\u5178\u578b\u9690\u6027BUG&#xff1a;\u5728PL\/SQL\u3001\u6570\u636e\u5e93\u67e5\u8be2\u5206\u6790\u5668\u4e2d\u6267\u884c\u6570\u636e\u5b8c\u5168\u6b63\u5e38&#xff0c;\u4f46\u63a5\u5165PB\u7b49\u524d\u7aef\u7a0b\u5e8f\u540e&#xff0c;\u65e0\u6570\u636e\u8fd4\u56de\u3001\u4e14\u65e0\u663e\u6027\u62a5\u9519\u65e5\u5fd7&#xff0c;\u76f4\u63a5\u5bfc\u81f4\u4e1a\u52a1\u529f\u80fd\u5f02\u5e38\u3002<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\">\u62a5\u9519\u6839\u56e0&#xff1a;SELECT \u5b50\u53e5\u4e2d\u7684\u884c\u5185\u6807\u91cf\u5b50\u67e5\u8be2&#xff0c;\u4e1a\u52a1\u6570\u636e\u5339\u914d\u540e\u4f1a\u8fd4\u56de\u591a\u6761\u8bb0\u5f55&#xff0c;\u8fdd\u53cd Oracle \u6807\u91cf\u5b50\u67e5\u8be2\u5355\u884c\u5355\u5217\u7684\u5f3a\u5236\u7ea6\u675f&#xff0c;\u89e6\u53d1&#xff1a;<span style=\"background-color:#eff0f1\">ORA-01427: \u5355\u884c\u5b50\u67e5\u8be2\u8fd4\u56de\u591a\u4e2a\u884c<\/span>\u3002<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\">\u73b0\u8c61\u5dee\u5f02\u5316\u539f\u56e0&#xff1a;\u6570\u636e\u5e93\u5ba2\u6237\u7aef\u81ea\u5e26\u5bb9\u9519\u673a\u5236&#xff0c;\u53ef\u517c\u5bb9\u5b50\u67e5\u8be2\u591a\u884c\u7ed3\u679c\u5e76\u6b63\u5e38\u5c55\u793a&#xff1b;\u4f46\u524d\u7aef\u7a0b\u5e8f\u6570\u636e\u5e93\u9a71\u52a8\u6821\u9a8c\u4e25\u683c&#xff0c;\u4e00\u65e6\u68c0\u6d4b\u5230\u5b50\u67e5\u8be2\u591a\u884c\u5f02\u5e38&#xff0c;\u4f1a\u76f4\u63a5\u7ec8\u6b62\u6570\u636e\u8bfb\u53d6&#xff0c;\u6700\u7ec8\u51fa\u73b0\u300c\u6570\u636e\u5e93\u80fd\u67e5\u5230\u3001\u524d\u7aef\u65e0\u6570\u636e\u3001\u65e0\u62a5\u9519\u300d\u7684\u9690\u6027\u6545\u969c\u3002<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\">\u6838\u5fc3\u7ec6\u8282&#xff1a;\u539f SQL \u52a0\u4e0a<span style=\"background-color:#eff0f1\">SUM()<\/span>\u00a0\u805a\u5408\u53ef\u6b63\u5e38\u8fd0\u884c&#xff0c;\u53bb\u6389\u805a\u5408\u76f4\u63a5\u62a5\u9519\u3002\u672c\u8d28\u539f\u56e0&#xff1a;\u4e1a\u52a1\u89c6\u56fe\u4e2d&#xff0c;\u540c\u4e00\u836f\u54c1\u5e8f\u53f7&#043;\u836f\u623f\u7f16\u53f7\u6761\u4ef6\u4e0b&#xff0c;\u5b58\u5728\u591a\u6761\u5e93\u5b58\u660e\u7ec6\u8bb0\u5f55\u3002<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\">\u4e8c\u3001\u539f\u59cb\u95ee\u9898SQL<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\">\u4ee5\u4e0b\u4e3a\u89e6\u53d1\u62a5\u9519\u7684\u539f\u59cb\u4e1a\u52a1SQL&#xff0c;\u6838\u5fc3\u95ee\u9898\u4e3a\u65e0\u805a\u5408\u3001\u65e0\u884c\u6570\u9650\u5236\u7684\u884c\u5185\u5b50\u67e5\u8be2&#xff1a;<\/p>\n<table border=\"1\" cellspacing=\"0\" style=\"margin-left:-0.6000pt\">\n<tbody>\n<tr>\n<td style=\"background-color:#f5f6f7;width:414.0000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\"><span style=\"color:#646a73\">sql<\/span><br \/>\nSELECT YK_YPBM.PYDM, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.YPXH,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.QBZF,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.YPMC AS YPMC,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.YPGG,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.YFGG, \u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.BFGG, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.YPDW, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.YFDW, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.BFDW, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.ZXDW, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.ZXBZ, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.YFBZ, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.BFBZ, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.FYFS, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.GYFF, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.TYPE,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.YPSX,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.JLDW,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.YBFL,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.YPJL,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.PSPB ,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0&#8212; \u65e0\u805a\u5408\u3001\u65e0\u884c\u6570\u9650\u5236&#xff0c;\u5339\u914d\u591a\u6761\u6570\u636e\u5373\u62a5\u9519<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0(select kcsl from v_emr_yfypxx<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0where v_emr_yfypxx.YPXH &#061;YK_YPXX.YPXH<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0and \u00a0v_emr_yfypxx.YFSB&#061;154) AS KCSL \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<br \/>\nFROM YK_TYPK, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0YK_YPBM,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0YK_YPXX \u00a0<br \/>\nWHERE ( YK_YPBM.YPXH &#061; YK_TYPK.YPXH ) AND<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0( YK_YPBM.BMFL&#061;:ai_bmfl ) AND<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0( YK_TYPK.YPXH &#061; YK_YPXX.YPXH ) AND<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0( YK_YPXX.JGID &#061; :al_jgid ) AND<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.ZFPB &#061; 0 and<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0(YK_YPBM.JGID \u00a0&#061; 0 or YK_YPBM.JGID &#061; :al_jgid )<br \/>\nORDER BY YK_YPBM.PYDM ,YK_TYPK.YPXH ASC<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\">\u4e09\u3001\u4e24\u79cd\u9488\u5bf9\u6027\u4fee\u590d\u65b9\u6848&#xff08;\u6309\u9700\u9009\u7528&#xff09;<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\">\u65b9\u6848\u4e00&#xff1a;SUM\u805a\u5408\u6c42\u548c&#xff08;\u4e1a\u52a1\u7edf\u8ba1\u573a\u666f\u00b7\u539f\u903b\u8f91\u4fdd\u7559&#xff09;<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\">\u9002\u7528\u573a\u666f&#xff1a;\u540c\u4e00\u836f\u54c1&#043;\u836f\u623f\u5b58\u5728\u591a\u6761\u5e93\u5b58\u8bb0\u5f55&#xff0c;\u4e1a\u52a1\u9700\u8981\u7d2f\u52a0\u5168\u90e8\u5e93\u5b58\u603b\u91cf&#xff0c;\u8d34\u5408\u539f\u6709\u4e1a\u52a1\u903b\u8f91\u3002<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\">\u4fee\u590d\u539f\u7406&#xff1a;\u901a\u8fc7 <span style=\"background-color:#eff0f1\">SUM()<\/span>\u00a0\u805a\u5408\u51fd\u6570\u5c06\u5b50\u67e5\u8be2\u8fd4\u56de\u7684\u591a\u884c\u6570\u636e\u5408\u5e76\u4e3a\u5355\u884c\u5355\u5217\u7ed3\u679c&#xff0c;\u5b8c\u5168\u7b26\u5408Oracle\u6807\u91cf\u5b50\u67e5\u8be2\u8bed\u6cd5\u89c4\u8303&#xff0c;\u5f7b\u5e95\u89c4\u907f\u591a\u884c\u62a5\u9519\u3002<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\">\u5173\u952e\u4e1a\u52a1\u9690\u60a3\u89e3\u8bfb&#xff08;\u91cd\u70b9\u8e29\u5751\u70b9&#xff09;<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\">\u5b50\u67e5\u8be2\u4f9d\u8d56\u7684<span style=\"background-color:#eff0f1\">v_emr_yfypxx<\/span>\u00a0\u662f\u9879\u76ee\u516c\u7528\u5168\u5c40\u89c6\u56fe&#xff08;\u836f\u623f\u836f\u54c1\u4fe1\u606f&#xff09;&#xff0c;\u5c5e\u4e8e\u591a\u4e1a\u52a1\u6a21\u5757\u5171\u4eab\u7684\u6570\u636e\u5b57\u5178&#xff0c;\u5168\u9662\u591a\u5904\u4e1a\u52a1\u4f9d\u8d56\u8be5\u89c6\u56fe\u83b7\u53d6\u836f\u623f\u3001\u836f\u54c1\u5e93\u5b58\u5173\u8054\u6570\u636e\u3002<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\">\u5f53\u524d\u5199\u6cd5\u5b58\u5728\u4e25\u91cd\u7684\u786c\u7f16\u7801\u9690\u60a3&#xff1a;\u5b50\u67e5\u8be2\u56fa\u5b9a\u5199\u6b7b <span style=\"background-color:#eff0f1\">YFSB&#061;154<\/span>\u00a0\u4f5c\u4e3a\u836f\u623f\u552f\u4e00\u8bc6\u522b\u6761\u4ef6&#xff0c;\u4ec5\u9002\u914d\u5f53\u524d\u5355\u4e00\u836f\u623f\u4e1a\u52a1&#xff0c;\u53ef\u7ef4\u62a4\u6027\u6781\u5dee\u3002<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\">\u89c6\u56fe\u53d8\u66f4\/\u786c\u7f16\u7801\u5e26\u6765\u7684\u98ce\u9669\u540e\u679c<\/p>\n<ul>\n<li style=\"text-align:left\">\u89c6\u56fe\u7ed3\u6784\u53d8\u66f4\u98ce\u9669&#xff1a;\u82e5\u516c\u7528\u89c6\u56fe <span style=\"background-color:#eff0f1\">v_emr_yfypxx<\/span>\u00a0\u88ab\u4fee\u6539\u5b57\u6bb5\u3001\u8c03\u6574\u8fc7\u6ee4\u903b\u8f91\u3001\u91cd\u6784\u6216\u505c\u7528&#xff0c;\u5f53\u524d SQL \u4f1a\u76f4\u63a5\u62a5\u9519\u3001\u6570\u636e\u4e3a\u7a7a\u3001\u7ed3\u679c\u9519\u4e71&#xff0c;\u4e14\u7275\u8fde\u6240\u6709\u4f9d\u8d56\u8be5\u89c6\u56fe\u7684\u4e1a\u52a1\u6a21\u5757\u3002<\/li>\n<\/ul>\n<ul>\n<li style=\"text-align:left\">\u786c\u7f16\u7801\u9002\u914d\u6027\u5dee&#xff1a;\u82e5\u540e\u671f\u836f\u623f\u7f16\u53f7\u8c03\u6574\u3001154\u53f7\u836f\u623f\u4f5c\u5e9f\u3001\u65b0\u589e\u836f\u623f&#xff0c;\u786c\u7f16\u7801\u503c\u65e0\u6cd5\u81ea\u9002\u5e94&#xff0c;\u76f4\u63a5\u5bfc\u81f4\u5e93\u5b58\u7edf\u8ba1\u6570\u636e\u7f3a\u5931\u3001\u4e1a\u52a1\u6570\u636e\u4e0d\u51c6\u3002<\/li>\n<\/ul>\n<ul>\n<li style=\"text-align:left\">\u9690\u6027\u6545\u969c\u96be\u6392\u67e5&#xff1a;\u516c\u7528\u89c6\u56fe\u65e0\u4e1a\u52a1\u9694\u79bb&#xff0c;\u5176\u4ed6\u6a21\u5757\u8fed\u4ee3\u4fee\u6539\u89c6\u56fe\u903b\u8f91&#xff0c;\u4f1a\u95f4\u63a5\u5bfc\u81f4\u672c\u529f\u80fd\u6570\u636e\u5f02\u5e38&#xff0c;\u65e0\u65e5\u5fd7\u3001\u65e0\u62a5\u9519&#xff0c;\u6392\u67e5\u6210\u672c\u6781\u9ad8\u3002<\/li>\n<\/ul>\n<table border=\"1\" cellspacing=\"0\" style=\"margin-left:-0.6000pt\">\n<tbody>\n<tr>\n<td style=\"background-color:#f5f6f7;width:414.0000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\"><span style=\"color:#646a73\">sql<\/span><br \/>\nSELECT YK_YPBM.PYDM, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.YPXH,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.QBZF,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.YPMC AS YPMC,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.YPGG,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.YFGG, \u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.BFGG, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.YPDW, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.YFDW, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.BFDW, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.ZXDW, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.ZXBZ, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.YFBZ, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.BFBZ, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.FYFS, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.GYFF, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.TYPE,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.YPSX,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.JLDW,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.YBFL,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.YPJL,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.PSPB ,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0(select sum(kcsl)<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0from v_emr_yfypxx<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0where v_emr_yfypxx.YPXH &#061;YK_YPXX.YPXH<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0and \u00a0v_emr_yfypxx.YFSB&#061;154) AS KCSL \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<br \/>\nFROM YK_TYPK, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0YK_YPBM,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0YK_YPXX \u00a0<br \/>\nWHERE YK_YPBM.YPXH &#061; YK_TYPK.YPXH<br \/>\n\u00a0\u00a0AND YK_YPBM.BMFL&#061;:ai_bmfl<br \/>\n\u00a0\u00a0AND YK_TYPK.YPXH &#061; YK_YPXX.YPXH<br \/>\n\u00a0\u00a0AND YK_YPXX.JGID &#061; :al_jgid<br \/>\n\u00a0\u00a0AND YK_TYPK.ZFPB &#061; 0<br \/>\n\u00a0\u00a0AND (YK_YPBM.JGID \u00a0&#061; 0 or YK_YPBM.JGID &#061; :al_jgid )<br \/>\nORDER BY YK_YPBM.PYDM ,YK_TYPK.YPXH ASC<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\">\u65b9\u6848\u4e8c&#xff1a;ROWNUM&#061;1\u9650\u5236\u884c\u6570&#xff08;\u7ebf\u4e0a\u5e94\u6025\u573a\u666f\u00b7\u53d6\u5355\u6761\u6570\u636e&#xff09;<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\">\u9002\u7528\u573a\u666f&#xff1a;\u4e1a\u52a1\u65e0\u9700\u7edf\u8ba1\u603b\u91cf&#xff0c;\u540c\u4e00\u6761\u4ef6\u4e0b\u591a\u6761\u6570\u636e\u4ec5\u9700\u83b7\u53d6\u4efb\u610f\u4e00\u6761&#xff0c;\u7528\u4e8e\u7ebf\u4e0a\u5feb\u901f\u5e94\u6025\u4fee\u590d\u3002<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\">\u4fee\u590d\u539f\u7406&#xff1a;\u901a\u8fc7 <span style=\"background-color:#eff0f1\">ROWNUM &#061; 1<\/span>\u00a0\u5f3a\u5236\u9650\u5236\u5b50\u67e5\u8be2\u4ec5\u8fd4\u56de\u7b2c\u4e00\u6761\u6570\u636e&#xff0c;\u4fdd\u8bc1\u7ed3\u679c\u5355\u884c\u5355\u5217&#xff0c;\u5feb\u901f\u89e3\u51b3\u8bed\u6cd5\u62a5\u9519\u3002<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\">\u4f18\u7f3a\u70b9\u8bf4\u660e&#xff1a;\u6539\u9020\u6210\u672c\u6781\u4f4e\u3001\u65e0\u9700\u6539\u52a8\u539f\u6709\u4e1a\u52a1\u903b\u8f91&#xff0c;\u9002\u5408\u7ebf\u4e0a\u7d27\u6025\u6b62\u8840\u4fee\u590d\u3002\u4f46\u7f3a\u70b9\u660e\u663e&#xff1a;\u5b50\u67e5\u8be2\u591a\u884c\u6570\u636e\u8fd4\u56de\u65e0\u5e8f&#xff0c;<span style=\"background-color:#eff0f1\">ROWNUM&#061;1<\/span>\u00a0\u968f\u673a\u53d6\u4e00\u6761\u6570\u636e&#xff0c;\u7ed3\u679c\u4e0d\u7cbe\u51c6\u3001\u4e0d\u53ef\u63a7&#xff0c;\u4ec5\u7528\u4e8e\u4e34\u65f6\u5e94\u6025&#xff0c;\u4e25\u7981\u957f\u671f\u751f\u4ea7\u4f7f\u7528\u3002\u5982\u9700\u7cbe\u51c6\u53d6\u503c&#xff0c;\u53ef\u642d\u914d ORDER BY \u56fa\u5b9a\u6392\u5e8f\u89c4\u5219\u3002<\/p>\n<table border=\"1\" cellspacing=\"0\" style=\"margin-left:-0.6000pt\">\n<tbody>\n<tr>\n<td style=\"background-color:#f5f6f7;width:414.0000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\"><span style=\"color:#646a73\">sql<\/span><br \/>\nSELECT YK_YPBM.PYDM, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.YPXH,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.QBZF,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.YPMC AS YPMC,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.YPGG,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.YFGG, \u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.BFGG, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.YPDW, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.YFDW, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.BFDW, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.ZXDW, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.ZXBZ, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.YFBZ, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.BFBZ, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.FYFS, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.GYFF, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.TYPE,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.YPSX,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.JLDW,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.YBFL,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.YPJL,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0YK_TYPK.PSPB ,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0(select kcsl<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0from v_emr_yfypxx<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0where v_emr_yfypxx.YPXH &#061;YK_YPXX.YPXH<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0and \u00a0v_emr_yfypxx.YFSB&#061;154<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0and rownum &#061; 1) AS KCSL \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<br \/>\nFROM YK_TYPK, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0YK_YPBM,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0YK_YPXX \u00a0<br \/>\nWHERE YK_YPBM.YPXH &#061; YK_TYPK.YPXH<br \/>\n\u00a0\u00a0AND YK_YPBM.BMFL&#061;:ai_bmfl<br \/>\n\u00a0\u00a0AND YK_TYPK.YPXH &#061; YK_YPXX.YPXH<br \/>\n\u00a0\u00a0AND YK_YPXX.JGID &#061; :al_jgid<br \/>\n\u00a0\u00a0AND YK_TYPK.ZFPB &#061; 0<br \/>\n\u00a0\u00a0AND (YK_YPBM.JGID \u00a0&#061; 0 or YK_YPBM.JGID &#061; :al_jgid )<br \/>\nORDER BY YK_YPBM.PYDM ,YK_TYPK.YPXH ASC<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\">\u56db\u3001\u751f\u4ea7\u6700\u4f18\u65b9\u6848&#xff1a;LEFT JOIN&#043;GROUP BY \u6539\u5199&#xff08;\u957f\u671f\u63a8\u8350&#xff09;<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\">\u884c\u5185\u6807\u91cf\u5b50\u67e5\u8be2\u4e0d\u4ec5\u53ef\u8bfb\u6027\u5dee\u3001\u6027\u80fd\u4f4e\u4e0b&#xff0c;\u4e14\u6781\u6613\u4ea7\u751f\u9690\u6027\u7ebf\u4e0a\u6545\u969c\u3002\u751f\u4ea7\u73af\u5883\u4e0d\u63a8\u8350\u4f7f\u7528\u884c\u5185\u5b50\u67e5\u8be2&#xff0c;\u7edf\u4e00\u91c7\u7528 \u5de6\u5916\u8fde\u63a5 &#043; \u5206\u7ec4\u805a\u5408\u00a0\u91cd\u6784&#xff0c;\u4ee3\u7801\u66f4\u89c4\u8303\u3001\u6027\u80fd\u66f4\u4f18\u3001\u53ef\u7ef4\u62a4\u6027\u66f4\u5f3a\u3002\u540c\u65f6\u901a\u8fc7 <span style=\"background-color:#eff0f1\">NVL()<\/span>\u00a0\u5c06\u7a7a\u5e93\u5b58\u8f6c\u4e3a 0&#xff0c;\u4f18\u5316\u524d\u7aef\u9875\u9762\u5c55\u793a\u4f53\u9a8c\u3002<\/p>\n<table border=\"1\" cellspacing=\"0\" style=\"margin-left:-0.6000pt\">\n<tbody>\n<tr>\n<td style=\"background-color:#f5f6f7;width:414.0000pt\">\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\"><span style=\"color:#646a73\">sql<\/span><br \/>\nSELECT t1.PYDM, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0t2.YPXH,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0t2.QBZF,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0t2.YPMC AS YPMC,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0t2.YPGG,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0t2.YFGG, \u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0t2.BFGG, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0t2.YPDW, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0t2.YFDW, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0t2.BFDW, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0t2.ZXDW, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0t2.ZXBZ, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0t2.YFBZ, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0t2.BFBZ, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0t2.FYFS, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0t2.GYFF, \u00a0\u00a0<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0t2.TYPE,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0t2.YPSX,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0t2.JLDW,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0t2.YBFL,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0t2.YPJL,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0t2.PSPB ,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0NVL(SUM(t4.kcsl),0) AS KCSL<br \/>\nFROM YK_TYPK t2<br \/>\nJOIN YK_YPBM t1 ON t1.YPXH &#061; t2.YPXH<br \/>\nJOIN YK_YPXX t3 ON t2.YPXH &#061; t3.YPXH<br \/>\nLEFT JOIN v_emr_yfypxx t4<br \/>\n\u00a0\u00a0ON t4.YPXH &#061; t3.YPXH AND t4.YFSB &#061; 154<br \/>\nWHERE t1.BMFL &#061; :ai_bmfl<br \/>\n\u00a0\u00a0AND t3.JGID &#061; :al_jgid<br \/>\n\u00a0\u00a0AND t2.ZFPB &#061; 0<br \/>\n\u00a0\u00a0AND (t1.JGID \u00a0&#061; 0 OR t1.JGID &#061; :al_jgid )<br \/>\nGROUP BY t1.PYDM, t2.YPXH, t2.QBZF, t2.YPMC,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0t2.YPGG, t2.YFGG, t2.BFGG, t2.YPDW,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0t2.YFDW, t2.BFDW, t2.ZXDW, t2.ZXBZ,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0t2.YFBZ, t2.BFBZ, t2.FYFS, t2.GYFF,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0t2.TYPE, t2.YPSX, t2.JLDW, t2.YBFL,<br \/>\n\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0t2.YPJL, t2.PSPB<br \/>\nORDER BY t1.PYDM ,t2.YPXH ASC;<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\">\u4e94\u3001\u6838\u5fc3\u8e29\u5751\u603b\u7ed3\u4e0e\u65b9\u6848\u9009\u578b<\/p>\n<li style=\"text-align:left\">\u6545\u969c\u5feb\u901f\u5224\u5b9a\u7ecf\u9a8c&#xff1a;\u6570\u636e\u5e93\u5ba2\u6237\u7aef\u67e5\u8be2\u6b63\u5e38\u3001\u524d\u7aef\u65e0\u6570\u636e\u4e14\u65e0\u62a5\u9519&#xff0c;\u4f18\u5148\u6392\u67e5SELECT \u884c\u5185\u6807\u91cf\u5b50\u67e5\u8be2\u591a\u884c\u6ea2\u51fa\u00a0\u95ee\u9898\u3002<\/li>\n<li style=\"text-align:left\">\u65b9\u6848\u5feb\u901f\u9009\u578b\u6307\u5357\u9700\u8981\u6c47\u603b\u7edf\u8ba1\u5e93\u5b58&#xff1a;\u4f18\u5148\u4f7f\u7528 <span style=\"background-color:#eff0f1\">SUM \u805a\u5408<\/span>\u00a0\u5feb\u901f\u4fee\u590d&#xff1b;<\/li>\n<li style=\"text-align:left\">\u7ebf\u4e0a\u7d27\u6025\u6545\u969c\u6b62\u8840&#xff1a;\u4e34\u65f6\u4f7f\u7528 <span style=\"background-color:#eff0f1\">ROWNUM&#061;1<\/span>\u00a0\u515c\u5e95&#xff1b;<\/li>\n<li style=\"text-align:left\">\u6b63\u5f0f\u751f\u4ea7\u957f\u671f\u8fed\u4ee3&#xff1a;\u7edf\u4e00\u4f7f\u7528<span style=\"background-color:#eff0f1\">LEFT JOIN &#043; GROUP BY<\/span>\u00a0\u89c4\u8303\u5199\u6cd5\u3002<\/li>\n<li style=\"text-align:left\">\u4e1a\u52a1\u4f18\u5316\u5efa\u8bae&#xff1a;\u82e5 <span style=\"background-color:#eff0f1\">v_emr_yfypxx<\/span>\u00a0\u591a\u884c\u6570\u636e\u5c5e\u4e8e\u810f\u6570\u636e&#xff0c;\u5efa\u8bae\u540e\u53f0\u7edf\u4e00\u6e05\u7406\u5197\u4f59\u6570\u636e&#xff0c;\u4ece\u6e90\u5934\u89c4\u907f\u591a\u884c\u62a5\u9519\u95ee\u9898&#xff1b;\u540c\u65f6\u5c3d\u91cf\u675c\u7edd\u4e1a\u52a1 SQL \u786c\u7f16\u7801\u5b57\u5178\u503c&#xff0c;\u63d0\u5347\u4ee3\u7801\u53ef\u7ef4\u62a4\u6027\u3002<\/li>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\">\u516d\u3001\u6807\u7b7e<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\">Oracle&#xff5c;SQL\u6392\u9519&#xff5c;HIS\u7cfb\u7edf&#xff5c;\u5355\u884c\u5b50\u67e5\u8be2&#xff5c;ROWNUM&#xff5c;\u6570\u636e\u5e93\u9690\u6027\u6545\u969c&#xff5c;SQL\u4f18\u5316<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\">\u968f\u7b14\u611f\u609f<\/p>\n<p style=\"margin-left:.0001pt;margin-right:0;text-align:left\">\u5728 HIS \u8fd0\u7ef4\u5f00\u53d1\u4e2d&#xff0c;\u5f88\u591a\u8be1\u5f02\u7684\u7ebf\u4e0a\u6545\u969c&#xff0c;\u5f80\u5f80\u4e0d\u662f\u590d\u6742\u903b\u8f91 Bug&#xff0c;\u800c\u662f\u5bf9 SQL \u57fa\u7840\u8bed\u6cd5\u7ea6\u675f\u7684\u5ffd\u89c6\u3002\u6807\u91cf\u5b50\u67e5\u8be2\u5f3a\u5236\u5355\u884c\u3001\u516c\u7528\u89c6\u56fe\u786c\u7f16\u7801\u3001\u524d\u540e\u7aef\u5bb9\u9519\u5dee\u5f02&#xff0c;\u90fd\u662f\u6781\u6613\u8e29\u5751\u7684\u7ec6\u8282\u3002\u5feb\u901f\u4fee\u590d\u53ef\u4ee5\u7528 SUM \u6216 ROWNUM \u515c\u5e95&#xff0c;\u4f46\u89c4\u8303\u7684 JOIN \u5199\u6cd5\u3001\u89c4\u907f\u786c\u7f16\u7801\u3001\u656c\u754f\u516c\u7528\u5b57\u5178\u89c6\u56fe&#xff0c;\u624d\u662f\u63d0\u5347\u7cfb\u7edf\u7a33\u5b9a\u6027\u7684\u5173\u952e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u95ee\u9898\u73b0\u8c61\u4e0e\u6839\u56e0\u5728HIS\u7cfb\u7edf\u836f\u54c1\u67e5\u8be2\u4e1a\u52a1\u4e2d&#xff0c;\u4e00\u6bb5\u591a\u8868\u5173\u8054\u67e5\u8be2SQL\u5b58\u5728\u5178\u578b\u9690\u6027BUG&#xff1a;\u5728PL\/SQL\u3001\u6570\u636e\u5e93\u67e5\u8be2\u5206\u6790\u5668\u4e2d\u6267\u884c\u6570\u636e\u5b8c\u5168\u6b63\u5e38&#xff0c;\u4f46\u63a5\u5165PB\u7b49\u524d\u7aef\u7a0b\u5e8f\u540e&#xff0c;\u65e0\u6570\u636e\u8fd4\u56de\u3001\u4e14\u65e0\u663e\u6027\u62a5\u9519\u65e5\u5fd7&#xff0c;\u76f4\u63a5\u5bfc\u81f4\u4e1a\u52a1\u529f\u80fd\u5f02\u5e38\u3002\u62a5\u9519\u6839\u56e0&#xff1a;SELECT \u5b50\u53e5\u4e2d\u7684\u884c\u5185\u6807\u91cf\u5b50\u67e5\u8be2&#xff0c;\u4e1a\u52a1\u6570\u636e\u5339\u914d\u540e\u4f1a\u8fd4\u56de\u591a\u6761\u8bb0\u5f55&#xff0c;\u8fdd\u53cd Oracle \u6807\u91cf\u5b50\u67e5\u8be2\u5355\u884c\u5355\u5217\u7684\u5f3a\u5236\u7ea6\u675f&#xff0c;\u89e6\u53d1&amp;#x<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[9462,9464,9461,9463,604],"topic":[],"class_list":["post-84481","post","type-post","status-publish","format-standard","hentry","category-server","tag-his","tag-rownum","tag-sql","tag-9463","tag-oracle"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u8be1\u5f02\u7ebf\u4e0aBUG\uff1aOracle\u6807\u91cf\u5b50\u67e5\u8be2\u8fd4\u56de\u591a\u884c\uff0c\u6570\u636e\u5e93\u6b63\u5e38\u524d\u7aef\u65e0\u6570\u636e\u89e3\u51b3\u5b9e\u5f55 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/84481.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u8be1\u5f02\u7ebf\u4e0aBUG\uff1aOracle\u6807\u91cf\u5b50\u67e5\u8be2\u8fd4\u56de\u591a\u884c\uff0c\u6570\u636e\u5e93\u6b63\u5e38\u524d\u7aef\u65e0\u6570\u636e\u89e3\u51b3\u5b9e\u5f55 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u4e00\u3001\u95ee\u9898\u73b0\u8c61\u4e0e\u6839\u56e0\u5728HIS\u7cfb\u7edf\u836f\u54c1\u67e5\u8be2\u4e1a\u52a1\u4e2d&#xff0c;\u4e00\u6bb5\u591a\u8868\u5173\u8054\u67e5\u8be2SQL\u5b58\u5728\u5178\u578b\u9690\u6027BUG&#xff1a;\u5728PL\/SQL\u3001\u6570\u636e\u5e93\u67e5\u8be2\u5206\u6790\u5668\u4e2d\u6267\u884c\u6570\u636e\u5b8c\u5168\u6b63\u5e38&#xff0c;\u4f46\u63a5\u5165PB\u7b49\u524d\u7aef\u7a0b\u5e8f\u540e&#xff0c;\u65e0\u6570\u636e\u8fd4\u56de\u3001\u4e14\u65e0\u663e\u6027\u62a5\u9519\u65e5\u5fd7&#xff0c;\u76f4\u63a5\u5bfc\u81f4\u4e1a\u52a1\u529f\u80fd\u5f02\u5e38\u3002\u62a5\u9519\u6839\u56e0&#xff1a;SELECT \u5b50\u53e5\u4e2d\u7684\u884c\u5185\u6807\u91cf\u5b50\u67e5\u8be2&#xff0c;\u4e1a\u52a1\u6570\u636e\u5339\u914d\u540e\u4f1a\u8fd4\u56de\u591a\u6761\u8bb0\u5f55&#xff0c;\u8fdd\u53cd Oracle \u6807\u91cf\u5b50\u67e5\u8be2\u5355\u884c\u5355\u5217\u7684\u5f3a\u5236\u7ea6\u675f&#xff0c;\u89e6\u53d1&amp;#x\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/84481.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-26T05:34:37+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/84481.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/84481.html\",\"name\":\"\u8be1\u5f02\u7ebf\u4e0aBUG\uff1aOracle\u6807\u91cf\u5b50\u67e5\u8be2\u8fd4\u56de\u591a\u884c\uff0c\u6570\u636e\u5e93\u6b63\u5e38\u524d\u7aef\u65e0\u6570\u636e\u89e3\u51b3\u5b9e\u5f55 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-26T05:34:37+00:00\",\"dateModified\":\"2026-07-26T05:34:37+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/84481.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/84481.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/84481.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u8be1\u5f02\u7ebf\u4e0aBUG\uff1aOracle\u6807\u91cf\u5b50\u67e5\u8be2\u8fd4\u56de\u591a\u884c\uff0c\u6570\u636e\u5e93\u6b63\u5e38\u524d\u7aef\u65e0\u6570\u636e\u89e3\u51b3\u5b9e\u5f55\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u8be1\u5f02\u7ebf\u4e0aBUG\uff1aOracle\u6807\u91cf\u5b50\u67e5\u8be2\u8fd4\u56de\u591a\u884c\uff0c\u6570\u636e\u5e93\u6b63\u5e38\u524d\u7aef\u65e0\u6570\u636e\u89e3\u51b3\u5b9e\u5f55 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/84481.html","og_locale":"zh_CN","og_type":"article","og_title":"\u8be1\u5f02\u7ebf\u4e0aBUG\uff1aOracle\u6807\u91cf\u5b50\u67e5\u8be2\u8fd4\u56de\u591a\u884c\uff0c\u6570\u636e\u5e93\u6b63\u5e38\u524d\u7aef\u65e0\u6570\u636e\u89e3\u51b3\u5b9e\u5f55 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u4e00\u3001\u95ee\u9898\u73b0\u8c61\u4e0e\u6839\u56e0\u5728HIS\u7cfb\u7edf\u836f\u54c1\u67e5\u8be2\u4e1a\u52a1\u4e2d&#xff0c;\u4e00\u6bb5\u591a\u8868\u5173\u8054\u67e5\u8be2SQL\u5b58\u5728\u5178\u578b\u9690\u6027BUG&#xff1a;\u5728PL\/SQL\u3001\u6570\u636e\u5e93\u67e5\u8be2\u5206\u6790\u5668\u4e2d\u6267\u884c\u6570\u636e\u5b8c\u5168\u6b63\u5e38&#xff0c;\u4f46\u63a5\u5165PB\u7b49\u524d\u7aef\u7a0b\u5e8f\u540e&#xff0c;\u65e0\u6570\u636e\u8fd4\u56de\u3001\u4e14\u65e0\u663e\u6027\u62a5\u9519\u65e5\u5fd7&#xff0c;\u76f4\u63a5\u5bfc\u81f4\u4e1a\u52a1\u529f\u80fd\u5f02\u5e38\u3002\u62a5\u9519\u6839\u56e0&#xff1a;SELECT \u5b50\u53e5\u4e2d\u7684\u884c\u5185\u6807\u91cf\u5b50\u67e5\u8be2&#xff0c;\u4e1a\u52a1\u6570\u636e\u5339\u914d\u540e\u4f1a\u8fd4\u56de\u591a\u6761\u8bb0\u5f55&#xff0c;\u8fdd\u53cd Oracle \u6807\u91cf\u5b50\u67e5\u8be2\u5355\u884c\u5355\u5217\u7684\u5f3a\u5236\u7ea6\u675f&#xff0c;\u89e6\u53d1&amp;#x","og_url":"https:\/\/www.wsisp.com\/helps\/84481.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-26T05:34:37+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/84481.html","url":"https:\/\/www.wsisp.com\/helps\/84481.html","name":"\u8be1\u5f02\u7ebf\u4e0aBUG\uff1aOracle\u6807\u91cf\u5b50\u67e5\u8be2\u8fd4\u56de\u591a\u884c\uff0c\u6570\u636e\u5e93\u6b63\u5e38\u524d\u7aef\u65e0\u6570\u636e\u89e3\u51b3\u5b9e\u5f55 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-26T05:34:37+00:00","dateModified":"2026-07-26T05:34:37+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/84481.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/84481.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/84481.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u8be1\u5f02\u7ebf\u4e0aBUG\uff1aOracle\u6807\u91cf\u5b50\u67e5\u8be2\u8fd4\u56de\u591a\u884c\uff0c\u6570\u636e\u5e93\u6b63\u5e38\u524d\u7aef\u65e0\u6570\u636e\u89e3\u51b3\u5b9e\u5f55"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/84481","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=84481"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/84481\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=84481"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=84481"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=84481"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=84481"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}