{"id":85487,"date":"2020-04-06T07:03:47","date_gmt":"2020-04-05T23:03:47","guid":{"rendered":"http:\/\/4563.org\/?p=85487"},"modified":"2020-04-06T07:03:47","modified_gmt":"2020-04-05T23:03:47","slug":"navicat-%e5%90%8c%e4%b8%80%e5%8f%a5-sql-%e8%af%ad%e5%8f%a5%e4%bb%a5%e5%89%8d%e6%89%a7%e8%a1%8c%e6%b2%a1%e9%97%ae%e9%a2%98%ef%bc%8c%e7%8e%b0%e5%9c%a8%e6%8a%a5-oci_invalid_handle","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=85487","title":{"rendered":"navicat \u540c\u4e00\u53e5 SQL \u8bed\u53e5\u4ee5\u524d\u6267\u884c\u6ca1\u95ee\u9898\uff0c\u73b0\u5728\u62a5 OCI_INVALID_HANDLE"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  navicat \u540c\u4e00\u53e5 SQL \u8bed\u53e5\u4ee5\u524d\u6267\u884c\u6ca1\u95ee\u9898\uff0c\u73b0\u5728\u62a5 OCI_INVALID_HANDLE               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : sandman511 <\/span>  <span><i><\/i> 8<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u4e00\u53e5 sql \u6267\u884c 50 \u79d2\u540e\u62a5\u9519 Error &#8211; OCI_INVALID_HANDLE<br \/> instantclient \u5e94\u8be5\u662f\u6b63\u5e38\u7684 \u56e0\u4e3a\u6267\u884c\u5176\u4ed6 sql \u8bed\u53e5\u6ca1\u95ee\u9898<br \/> \u8fd9\u53e5 sql \u4ee5\u524d\u4e5f\u6267\u884c\u8fc7 \u6ca1\u95ee\u9898\u3002<\/p>\n<pre><code>select AAA,BBB,CCC from TTT WHERE  AAA IN ('X1','X2') AND  DDD IN ('Y1','Y2','Y3','Y4') AND  ( BBB BETWEEN to_date('2017-05-14 00:00:00','yyyy-mm-dd hh24:mi:ss') AND to_date('2017-05-18 00:00:00','yyyy-mm-dd hh24:mi:ss') OR BBB BETWEEN to_date('2018-03-30 00:00:00','yyyy-mm-dd hh24:mi:ss') AND to_date('2018-04-01 00:00:00','yyyy-mm-dd hh24:mi:ss') OR BBB BETWEEN to_date('2018-11-24 00:00:00','yyyy-mm-dd hh24:mi:ss') AND to_date('2018-11-25 00:00:00','yyyy-mm-dd hh24:mi:ss') ) ORDER BY AAA,BBB <\/code><\/pre>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>5<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"1424012\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : passMeBy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6570\u636e\u5e93\u8fde\u63a5\u6b63\u5e38\u5417\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1424013\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : sandman511 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @passMeBy \u55ef \u6b63\u5e38\u7684 \u5176\u4ed6 sql \u90fd\u80fd\u6267\u884c \u5c31\u8fd9\u4e2a\u4e0d\u884c                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1424014\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : warlue <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u590d\u5236\u7c98\u8d34\u7684\u5417\uff1f\u5982\u679c\u662f\u7684\u8bdd\u5e94\u8be5\u7a7a\u683c\u95ee\u9898\uff0c\u590d\u5236\u7a7a\u683c\uff0c\u66ff\u6362\u6210\u624b\u6253\u7684\u7a7a\u683c\uff0c                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1424015\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : LeeSeoung <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6709\u6ca1\u53ef\u80fd\u786c\u76d8\u95ee\u9898\u3002\u3002\u6216\u8005\u6570\u636e\u6587\u4ef6\u574f\u4e86\u3002\u3002\u4e4b\u524d\u9047\u5230\u8fc7\u67e5\u5230\u6307\u5b9a\u533a\u57df\u7684\u6570\u636e\u5c31\u62a5\u9519\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"1424016\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : tolerance <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ef\u80fd\u662f\u77ed\u65f6\u95f4\u5185\u5efa\u7acb\u8fde\u63a5\u6b21\u6570\u8fc7\u591a\u5bfc\u81f4\uff0c\u60f3\u529e\u6cd5\u51cf\u5c11\u8fde\u63a5\u6b21\u6570\u8bd5\u8bd5                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>navicat \u540c\u4e00\u53e5 SQL \u8bed&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/85487"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=85487"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/85487\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=85487"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=85487"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=85487"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}