{"id":74,"date":"2015-11-06T20:39:21","date_gmt":"2015-11-06T18:39:21","guid":{"rendered":"http:\/\/geekinto.com\/?p=74"},"modified":"2015-11-06T20:39:21","modified_gmt":"2015-11-06T18:39:21","slug":"code-best-of-oracle_sql","status":"publish","type":"post","link":"https:\/\/howoracleapex.com\/?p=74","title":{"rendered":"code best of #oracle_sql"},"content":{"rendered":"<p><strong><span style=\"text-decoration: underline;\">Case 1<\/span><br \/>\n<\/strong><\/p>\n<div>I use<br \/>\n<span style=\"color: #3366ff;\">COALESCE( v(&#8216;APP_USER&#8217;),USER );\u00a0<\/span><\/div>\n<div>instead of<\/div>\n<div><span style=\"color: #ff6600;\">NVL( V(&#8216;APP_USER&#8217;),USER );<\/span><\/div>\n<div><\/div>\n<div>Cause:<br \/>\nMore performance.<\/div>\n<div><\/div>\n<div><\/div>\n<div><\/div>\n<div><span style=\"text-decoration: underline;\"><strong>Case 2<\/strong><\/span><\/div>\n<div>I use<br \/>\n<span style=\"color: #3366ff;\"><i>SYS_CONTEXT(&#8216;APEX$SESSION&#8217;, &#8216;app_user&#8217;)<\/i><\/span><\/div>\n<div>instead of<\/div>\n<div><span style=\"color: #ff6600;\">V(&#8216;APP_USER&#8217;)<\/span><\/div>\n<div><\/div>\n<div>Cause:<br \/>\ni can&#8217;t use\u00a0<strong>v(&#8216;APP_USER&#8217;)<\/strong> by default value for column but i can use\u00a0<i><strong>SYS_CONTEXT(&#8216;APEX$SESSION&#8217;, &#8216;app_user&#8217;)<\/strong>\u00a0for default value of column\u00a0<\/i><\/div>\n<p><strong>\u00a0<\/strong><\/p>\n<p>source:<a href=\"http:\/\/apex-oracle-arab.blogspot.com.eg\/\">\u00a0http:\/\/apex-oracle-arab.blogspot.com.eg\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Case 1 I use COALESCE( v(&#8216;APP_USER&#8217;),USER );\u00a0 instead of NVL( V(&#8216;APP_USER&#8217;),USER ); Cause: More performance. Case 2 I use SYS_CONTEXT(&#8216;APEX$SESSION&#8217;, &#8216;app_user&#8217;) instead of V(&#8216;APP_USER&#8217;) Cause: i can&#8217;t use\u00a0v(&#8216;APP_USER&#8217;) by default value for column but&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,2,6,5],"tags":[],"class_list":["post-74","post","type-post","status-publish","format-standard","hentry","category-dba","category-oracle","category-plsql","category-sql"],"_links":{"self":[{"href":"https:\/\/howoracleapex.com\/index.php?rest_route=\/wp\/v2\/posts\/74","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/howoracleapex.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/howoracleapex.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/howoracleapex.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/howoracleapex.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=74"}],"version-history":[{"count":1,"href":"https:\/\/howoracleapex.com\/index.php?rest_route=\/wp\/v2\/posts\/74\/revisions"}],"predecessor-version":[{"id":75,"href":"https:\/\/howoracleapex.com\/index.php?rest_route=\/wp\/v2\/posts\/74\/revisions\/75"}],"wp:attachment":[{"href":"https:\/\/howoracleapex.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=74"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/howoracleapex.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=74"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/howoracleapex.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=74"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}