{"id":62,"date":"2018-06-22T13:07:45","date_gmt":"2018-06-22T13:07:45","guid":{"rendered":"http:\/\/mein-it-wissen.net\/?p=62"},"modified":"2018-06-22T13:58:22","modified_gmt":"2018-06-22T13:58:22","slug":"komma-separated-list-fuer-in-klausel","status":"publish","type":"post","link":"https:\/\/mein-it-wissen.net\/?p=62","title":{"rendered":"Komma-Separated list f\u00fcr IN-Klausel"},"content":{"rendered":"<p>Auf<\/p>\n<p>https:\/\/blogs.oracle.com\/aramamoo\/how-to-split-comma-separated-string-and-pass-to-in-clause-of-select-statement<\/p>\n<p>wird erkl\u00e4rt, wie man in einer WHERE &#8230; IN Klausel eine String-Variable nutzen kann.<\/p>\n<p>Ein noch besseres Beispiel funktioniert so:<\/p>\n<p>with test as<br \/>\n(select &#8218;KART,KART-SPG,PAL&#8216; col from dual)<br \/>\nselect regexp_substr(col, &#8218;[^,]+&#8216;, 1, level) result from test<br \/>\nconnect by level &lt;= length(regexp_replace(col, &#8218;[^,]+&#8216;)) + 1;<\/p>\n<p>.. liefert eine Tabelle zur\u00fcck und darum funktioniert dieser Ausdruck innerhalb einer WHERE-Klausel.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Auf https:\/\/blogs.oracle.com\/aramamoo\/how-to-split-comma-separated-string-and-pass-to-in-clause-of-select-statement wird erkl\u00e4rt, wie man in einer WHERE &#8230; IN Klausel eine String-Variable nutzen kann. Ein noch besseres Beispiel funktioniert so: with test as (select &#8218;KART,KART-SPG,PAL&#8216; col from dual) select regexp_substr(col, &#8218;[^,]+&#8216;, 1, level) &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,2,4,3],"tags":[],"class_list":["post-62","post","type-post","status-publish","format-standard","hentry","category-heute-gelernt","category-oracle","category-plsql","category-sql"],"_links":{"self":[{"href":"https:\/\/mein-it-wissen.net\/index.php?rest_route=\/wp\/v2\/posts\/62","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mein-it-wissen.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mein-it-wissen.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mein-it-wissen.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mein-it-wissen.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=62"}],"version-history":[{"count":3,"href":"https:\/\/mein-it-wissen.net\/index.php?rest_route=\/wp\/v2\/posts\/62\/revisions"}],"predecessor-version":[{"id":65,"href":"https:\/\/mein-it-wissen.net\/index.php?rest_route=\/wp\/v2\/posts\/62\/revisions\/65"}],"wp:attachment":[{"href":"https:\/\/mein-it-wissen.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=62"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mein-it-wissen.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=62"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mein-it-wissen.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=62"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}