{"id":1084,"date":"2015-12-30T14:32:13","date_gmt":"2015-12-30T14:32:13","guid":{"rendered":"http:\/\/codethataint.com\/blog\/?p=1084"},"modified":"2015-12-30T14:32:13","modified_gmt":"2015-12-30T14:32:13","slug":"empty-check-in-oracle","status":"publish","type":"post","link":"https:\/\/codethataint.com\/blog\/empty-check-in-oracle\/","title":{"rendered":"Empty Check in Oracle"},"content":{"rendered":"<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\nSELECT  'Equal' FROM DUAL\r\n WHERE  NVL(NULL,'') = '';\r\n<\/pre>\n<p><strong>Output<\/strong><\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\nSELECT  'Equal' FROM DUAL\r\n WHERE  NVL(NULL,'~') = '~';\r\n<\/pre>\n<p><strong>Output<\/strong><br \/>\nEmpty<\/p>\n<p>While Passing Parameters to Procedure its should be<\/p>\n<pre class=\"brush: sql; title: ; notranslate\" title=\"\">\r\nSELECT  'Equal' FROM DUAL\r\n WHERE  NVL(col_name, '~') = NVL(p_param, NVL(col_name, '~'));\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>SELECT &#8216;Equal&#8217; FROM DUAL WHERE NVL(NULL,&#8221;) = &#8221;; Output SELECT &#8216;Equal&#8217; FROM DUAL WHERE NVL(NULL,&#8217;~&#8217;) = &#8216;~&#8217;; Output Empty While Passing Parameters to Procedure its should be SELECT &#8216;Equal&#8217; FROM DUAL WHERE NVL(col_name, &#8216;~&#8217;) = NVL(p_param, NVL(col_name, &#8216;~&#8217;));<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[165],"tags":[],"class_list":["post-1084","post","type-post","status-publish","format-standard","hentry","category-oracle-notes"],"_links":{"self":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/1084","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/comments?post=1084"}],"version-history":[{"count":1,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/1084\/revisions"}],"predecessor-version":[{"id":1085,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/1084\/revisions\/1085"}],"wp:attachment":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/media?parent=1084"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/categories?post=1084"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/tags?post=1084"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}