{"id":17138,"date":"2020-10-11T12:24:10","date_gmt":"2020-10-11T12:24:10","guid":{"rendered":"https:\/\/dbtut.com\/?p=17138"},"modified":"2020-10-11T15:20:30","modified_gmt":"2020-10-11T15:20:30","slug":"oracle-pl-sql-conditional-statements","status":"publish","type":"post","link":"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-conditional-statements\/","title":{"rendered":"Oracle PL\/SQL Conditional Statements"},"content":{"rendered":"<p>This article contins information about PL\/SQL Conditional Statements such as IF,IF ELSE,ELSEIF,CASE.<\/p>\n<p>Conditional statements allow to execute commands according to a certain condition.<\/p>\n<p>The condition in conditional statements is created by using the operators in Oracle PL \/ SQL.<\/p>\n<h2>What are the PL\/SQL Conditional Statements?<\/h2>\n<h3>IF Statement in Oracle PL\/SQL<\/h3>\n<p>If the specified condition is true, commands run in the block.<\/p>\n<pre class=\"lang:default decode:true \">IF Your_Condition THEN\r\n    -- Commands to be execute if condition is true\r\nEND IF;<\/pre>\n<p>Sample IF Condition Usage is as follows;<\/p>\n<pre class=\"lang:default decode:true \">SET SERVEROUTPUT ON;\r\nBEGIN\r\n    IF TRUE THEN\r\n        DBMS_OUTPUT.put_line('Hello, I am Yusuf SEZER');\r\n    END IF;\r\nEND;<\/pre>\n<h3>IF ELSE Statement in Oracle PL\/SQL<\/h3>\n<p>ELSE condition contains commands to run if the condition set by IF is not true.<\/p>\n<pre class=\"lang:default decode:true\">IF Your_Condition THEN\r\n    -- Commands to be executed if condition is true\r\nELSE\r\n    -- Commands to be executed if condition is false\r\nEND IF;<\/pre>\n<p>Sample IF ELSE Condition Usage is as follows;<\/p>\n<pre class=\"lang:default decode:true \">SET SERVEROUTPUT ON;\r\nBEGIN\r\n    IF FALSE THEN\r\n        DBMS_OUTPUT.put_line('Hello, I am Yusuf SEZER');\r\n    ELSE\r\n        DBMS_OUTPUT.put_line('There may be other commands in this section.');\r\n    END IF;\r\nEND;<\/pre>\n<h3>ELSIF Statement in Oracle PL\/SQL<\/h3>\n<p>Used to specify multiple conditions.<\/p>\n<pre class=\"lang:default decode:true\">IF Your_Condition1 THEN\r\n    -- Commands-1\r\nELSIF Your_Condition2 THEN\r\n    -- Comamnds-2\r\nELSIF Your_Condition3 THEN\r\n    -- Comamnds-3\r\nELSIF Your_Condition4 THEN\r\n    -- Comamnds-4\r\nELSE\r\n    -- Comamnds-5\r\nEND IF;<\/pre>\n<p>Sample ELSIF Condition Usage is as follows;<\/p>\n<pre class=\"lang:default decode:true \">SET SERVEROUTPUT ON;\r\nDECLARE\r\n  v_number PLS_INTEGER := 7;\r\nBEGIN\r\n    IF v_number = 0 THEN\r\n        DBMS_OUTPUT.put_line('zero');\r\n    ELSIF v_number = 1 THEN\r\n        DBMS_OUTPUT.put_line('one');\r\n    ELSIF v_number = 2 THEN\r\n        DBMS_OUTPUT.put_line('two');\r\n    ELSIF v_number = 3 THEN\r\n        DBMS_OUTPUT.put_line('three');\r\n    ELSIF v_number = 4 THEN\r\n        DBMS_OUTPUT.put_line('four');\r\n    ELSE\r\n        DBMS_OUTPUT.put_line('unknown number.');\r\n    END IF;\r\nEND;<\/pre>\n<h3>CASE Statement in Oracle PL\/SQL<\/h3>\n<p>IF AND ELSIF cause multiple operators to be used for a value.<\/p>\n<p>The CASE keyword is used to check the result of a single value.<\/p>\n<pre class=\"lang:default decode:true \">CASE v_variable\r\n    WHEN 'value-1' THEN\r\n        -- commands-1\r\n    WHEN 'value-2' THEN\r\n        -- commands-2\r\n    ELSE\r\n        -- commands-3\r\nEND CASE;<\/pre>\n<p>Sample CASE Condition Usage is as follows;<\/p>\n<pre class=\"lang:default decode:true \">SET SERVEROUTPUT ON;\r\nDECLARE\r\n  v_number PLS_INTEGER := 7;\r\nBEGIN\r\n    CASE v_number\r\n    WHEN 0 THEN\r\n        DBMS_OUTPUT.put_line('zero');\r\n    WHEN 1 THEN\r\n        DBMS_OUTPUT.put_line('one');\r\n    WHEN 2 THEN\r\n        DBMS_OUTPUT.put_line('two');\r\n    WHEN 3 THEN\r\n        DBMS_OUTPUT.put_line('three');\r\n    WHEN 4 THEN\r\n        DBMS_OUTPUT.put_line('four');\r\n    ELSE\r\n        DBMS_OUTPUT.put_line('unknown number.');\r\n    END CASE;\r\nEND;<\/pre>\n<p>You see that less operators are used compared to the previous ELSIF example.<\/p>\n<p>The CASE condition can also be used with operators.<\/p>\n<pre class=\"lang:default decode:true \">CASE \r\n    WHEN Your_Condition_1 THEN\r\n        -- commands-1\r\n    WHEN Your_Condition_2 THEN\r\n        -- commands-2\r\n    WHEN Your_Condition_3 THEN\r\n        -- commands-3\r\n    ELSE\r\n        -- commands-4\r\nEND CASE;<\/pre>\n<p>Sample usage is as follows;<\/p>\n<pre class=\"lang:default decode:true \">SET SERVEROUTPUT ON;\r\nDECLARE\r\n  v_number PLS_INTEGER := 3;\r\nBEGIN\r\n    CASE\r\n    WHEN v_number = 0 THEN\r\n        DBMS_OUTPUT.put_line('zero');\r\n    WHEN v_number = 1 THEN\r\n        DBMS_OUTPUT.put_line('one');\r\n    WHEN v_number = 2 THEN\r\n        DBMS_OUTPUT.put_line('two');\r\n    WHEN v_number = 3 THEN\r\n        DBMS_OUTPUT.put_line('three');\r\n    WHEN v_number = 4 THEN\r\n        DBMS_OUTPUT.put_line('four');\r\n    ELSE\r\n        DBMS_OUTPUT.put_line('unknown number.');\r\n    END CASE;\r\nEND;<\/pre>\n<p>Conditional expressions can also be used in loops.<\/p>\n<p>You can find more detailed information about below topics in the below link.<\/p>\n<p><strong><a href=\"https:\/\/dbtut.com\/index.php\/2020\/03\/19\/pl-sql-tutorial\/\" target=\"_blank\" rel=\"noopener noreferrer\">PL\/SQL Tutorial<\/a><\/strong><\/p>\n<p>You will find below topics in this article.<\/p>\n<ol>\n<li><a href=\"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/what-is-pl-sql\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>What is PL\/SQL<\/strong><\/a><\/li>\n<li><a href=\"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-data-types-and-variables-and-literals\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Oracle PL\/SQL Data Types and Variables and Literals<\/strong><\/a><\/li>\n<li><a href=\"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-operators\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Oracle PL\/SQL Operators<\/strong><\/a><\/li>\n<li><a href=\"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-conditional-statements\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Oracle PL\/SQL Conditional Statements<\/strong><\/a><\/li>\n<li><a href=\"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-loops\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Oracle PL\/SQL Loops<\/strong><\/a><\/li>\n<li><a href=\"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-procedures-and-procedure-parameters\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Oracle PL\/SQL Procedures and Procedure Parameters<\/strong><\/a><\/li>\n<li><a href=\"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-functions\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Oracle PL\/SQL Functions<\/strong><\/a><\/li>\n<li><a href=\"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-cursor\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Oracle PL\/SQL Cursor<\/strong><\/a><\/li>\n<li><a href=\"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-records\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Oracle PL\/SQL Records<\/strong><\/a><\/li>\n<li><a href=\"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-exception\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Oracle PL\/SQL Exception<\/strong><\/a><\/li>\n<li><a href=\"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-trigger\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Oracle PL\/SQL Trigger<\/strong><\/a><\/li>\n<li><a href=\"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-packages\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Oracle PL\/SQL Packages<\/strong><\/a><\/li>\n<li><a href=\"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-collections\/\" target=\"_blank\" rel=\"noopener noreferrer\"><strong>Oracle PL\/SQL Collections<\/strong><\/a><\/li>\n<\/ol>\n<p>You can find more information about Conditinal Statement at <a href=\"https:\/\/docs.oracle.com\/database\/121\/LNPLS\/controlstatements.htm#LNPLS004\" target=\"_blank\" rel=\"noopener noreferrer\">docs.oracle.com<\/a><\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_17138\" class=\"pvc_stats all  \" data-element-id=\"17138\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/dbtut.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>This article contins information about PL\/SQL Conditional Statements such as IF,IF ELSE,ELSEIF,CASE. Conditional statements allow to execute commands according to a certain condition. The condition in conditional statements is created by using the operators in Oracle PL \/ SQL. What are the PL\/SQL Conditional Statements? IF Statement in Oracle PL\/SQL If the specified condition is &hellip;<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_17138\" class=\"pvc_stats all  \" data-element-id=\"17138\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/dbtut.com\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":485,"featured_media":17142,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[4],"tags":[9255,10075,10157,10158,10074,9252,10160,10159,10161,9246,9249,10073,10162,10163,10072,10164,10165],"class_list":["post-17138","post","type-post","status-publish","format-standard","has-post-thumbnail","","category-oracle","tag-case-condition-in-pl-sql","tag-case-statement-in-oracle","tag-case-statement-in-oracle-pl-sql","tag-case-statement-in-pl-sql","tag-elseif-statement-in-oracle","tag-elsif-condition-in-pl-sql","tag-elsif-statement-in-oracle","tag-elsif-statement-in-oracle-pl-sql","tag-elsif-statement-in-pl-sql","tag-if-condition-in-pl-sql","tag-if-else-condition-in-pl-sql","tag-if-else-statement-in-oracle","tag-if-else-statement-in-oracle-pl-sql","tag-if-else-statement-in-pl-sql","tag-if-statement-in-oracle","tag-if-statement-in-oracle-pl-sql","tag-if-statement-in-pl-sql"],"aioseo_notices":[],"a3_pvc":{"activated":true,"total_views":391,"today_views":0},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Oracle PL\/SQL Conditional Statements - Database Tutorials<\/title>\n<meta name=\"description\" content=\"This article contins information about PL\/SQL Conditional Statements such as IF Condition,IF ELSE Condition,ELSEIF Condition, CASE Condition\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-conditional-statements\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Oracle PL\/SQL Conditional Statements - Database Tutorials\" \/>\n<meta property=\"og:description\" content=\"This article contins information about PL\/SQL Conditional Statements such as IF Condition,IF ELSE Condition,ELSEIF Condition, CASE Condition\" \/>\n<meta property=\"og:url\" content=\"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-conditional-statements\/\" \/>\n<meta property=\"og:site_name\" content=\"Database Tutorials\" \/>\n<meta property=\"article:published_time\" content=\"2020-10-11T12:24:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-10-11T15:20:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/10\/plsqlconditionalstatements.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"821\" \/>\n\t<meta property=\"og:image:height\" content=\"519\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Yusuf SEZER\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Yusuf SEZER\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-conditional-statements\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-conditional-statements\/\"},\"author\":{\"name\":\"Yusuf SEZER\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/be8bf54494b6a89e626cbed2c940599a\"},\"headline\":\"Oracle PL\/SQL Conditional Statements\",\"datePublished\":\"2020-10-11T12:24:10+00:00\",\"dateModified\":\"2020-10-11T15:20:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-conditional-statements\/\"},\"wordCount\":296,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/dbtut.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-conditional-statements\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/10\/plsqlconditionalstatements.jpg\",\"keywords\":[\"CASE Condition in PL\/SQL\",\"case statement in oracle\",\"CASE Statement in Oracle PL\/SQL\",\"CASE Statement in PL\/SQL\",\"elseif statement in oracle\",\"ELSIF Condition in PL\/SQL\",\"ELSIF Statement in Oracle\",\"ELSIF Statement in Oracle PL\/SQL\",\"ELSIF Statement in PL\/SQL\",\"IF Condition in PL\/SQL\",\"IF ELSE Condition in PL\/SQL\",\"if else statement in oracle\",\"IF ELSE Statement in Oracle PL\/SQL\",\"IF ELSE Statement in PL\/SQL\",\"If statement in oracle\",\"IF Statement in Oracle PL\/SQL\",\"IF Statement in PL\/SQL\"],\"articleSection\":[\"ORACLE\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-conditional-statements\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-conditional-statements\/\",\"url\":\"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-conditional-statements\/\",\"name\":\"Oracle PL\/SQL Conditional Statements - Database Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/dbtut.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-conditional-statements\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-conditional-statements\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/10\/plsqlconditionalstatements.jpg\",\"datePublished\":\"2020-10-11T12:24:10+00:00\",\"dateModified\":\"2020-10-11T15:20:30+00:00\",\"description\":\"This article contins information about PL\/SQL Conditional Statements such as IF Condition,IF ELSE Condition,ELSEIF Condition, CASE Condition\",\"breadcrumb\":{\"@id\":\"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-conditional-statements\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-conditional-statements\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-conditional-statements\/#primaryimage\",\"url\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/10\/plsqlconditionalstatements.jpg\",\"contentUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/10\/plsqlconditionalstatements.jpg\",\"width\":821,\"height\":519},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-conditional-statements\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/dbtut.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Oracle PL\/SQL Conditional Statements\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/dbtut.com\/#website\",\"url\":\"https:\/\/dbtut.com\/\",\"name\":\"Database Tutorials\",\"description\":\"MSSQL, Oracle, PostgreSQL, MySQL, MariaDB, DB2, Sybase, Teradata, Big Data, NOSQL, MongoDB, Couchbase, Cassandra, Windows, Linux\",\"publisher\":{\"@id\":\"https:\/\/dbtut.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/dbtut.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/dbtut.com\/#organization\",\"name\":\"dbtut\",\"url\":\"https:\/\/dbtut.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg\",\"contentUrl\":\"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg\",\"width\":223,\"height\":36,\"caption\":\"dbtut\"},\"image\":{\"@id\":\"https:\/\/dbtut.com\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/be8bf54494b6a89e626cbed2c940599a\",\"name\":\"Yusuf SEZER\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/dbtut.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/19675b3db2d4ce370af047187123e2055a2b254ede3f0e7d9bc934da478146f7?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/19675b3db2d4ce370af047187123e2055a2b254ede3f0e7d9bc934da478146f7?s=96&d=mm&r=g\",\"caption\":\"Yusuf SEZER\"},\"url\":\"https:\/\/dbtut.com\/index.php\/author\/yusufsezer\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Oracle PL\/SQL Conditional Statements - Database Tutorials","description":"This article contins information about PL\/SQL Conditional Statements such as IF Condition,IF ELSE Condition,ELSEIF Condition, CASE Condition","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:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-conditional-statements\/","og_locale":"en_US","og_type":"article","og_title":"Oracle PL\/SQL Conditional Statements - Database Tutorials","og_description":"This article contins information about PL\/SQL Conditional Statements such as IF Condition,IF ELSE Condition,ELSEIF Condition, CASE Condition","og_url":"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-conditional-statements\/","og_site_name":"Database Tutorials","article_published_time":"2020-10-11T12:24:10+00:00","article_modified_time":"2020-10-11T15:20:30+00:00","og_image":[{"width":821,"height":519,"url":"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/10\/plsqlconditionalstatements.jpg","type":"image\/jpeg"}],"author":"Yusuf SEZER","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Yusuf SEZER","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-conditional-statements\/#article","isPartOf":{"@id":"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-conditional-statements\/"},"author":{"name":"Yusuf SEZER","@id":"https:\/\/dbtut.com\/#\/schema\/person\/be8bf54494b6a89e626cbed2c940599a"},"headline":"Oracle PL\/SQL Conditional Statements","datePublished":"2020-10-11T12:24:10+00:00","dateModified":"2020-10-11T15:20:30+00:00","mainEntityOfPage":{"@id":"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-conditional-statements\/"},"wordCount":296,"commentCount":0,"publisher":{"@id":"https:\/\/dbtut.com\/#organization"},"image":{"@id":"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-conditional-statements\/#primaryimage"},"thumbnailUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/10\/plsqlconditionalstatements.jpg","keywords":["CASE Condition in PL\/SQL","case statement in oracle","CASE Statement in Oracle PL\/SQL","CASE Statement in PL\/SQL","elseif statement in oracle","ELSIF Condition in PL\/SQL","ELSIF Statement in Oracle","ELSIF Statement in Oracle PL\/SQL","ELSIF Statement in PL\/SQL","IF Condition in PL\/SQL","IF ELSE Condition in PL\/SQL","if else statement in oracle","IF ELSE Statement in Oracle PL\/SQL","IF ELSE Statement in PL\/SQL","If statement in oracle","IF Statement in Oracle PL\/SQL","IF Statement in PL\/SQL"],"articleSection":["ORACLE"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-conditional-statements\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-conditional-statements\/","url":"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-conditional-statements\/","name":"Oracle PL\/SQL Conditional Statements - Database Tutorials","isPartOf":{"@id":"https:\/\/dbtut.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-conditional-statements\/#primaryimage"},"image":{"@id":"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-conditional-statements\/#primaryimage"},"thumbnailUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/10\/plsqlconditionalstatements.jpg","datePublished":"2020-10-11T12:24:10+00:00","dateModified":"2020-10-11T15:20:30+00:00","description":"This article contins information about PL\/SQL Conditional Statements such as IF Condition,IF ELSE Condition,ELSEIF Condition, CASE Condition","breadcrumb":{"@id":"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-conditional-statements\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-conditional-statements\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-conditional-statements\/#primaryimage","url":"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/10\/plsqlconditionalstatements.jpg","contentUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2020\/10\/plsqlconditionalstatements.jpg","width":821,"height":519},{"@type":"BreadcrumbList","@id":"https:\/\/dbtut.com\/index.php\/2020\/10\/11\/oracle-pl-sql-conditional-statements\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/dbtut.com\/"},{"@type":"ListItem","position":2,"name":"Oracle PL\/SQL Conditional Statements"}]},{"@type":"WebSite","@id":"https:\/\/dbtut.com\/#website","url":"https:\/\/dbtut.com\/","name":"Database Tutorials","description":"MSSQL, Oracle, PostgreSQL, MySQL, MariaDB, DB2, Sybase, Teradata, Big Data, NOSQL, MongoDB, Couchbase, Cassandra, Windows, Linux","publisher":{"@id":"https:\/\/dbtut.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/dbtut.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/dbtut.com\/#organization","name":"dbtut","url":"https:\/\/dbtut.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/#\/schema\/logo\/image\/","url":"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg","contentUrl":"https:\/\/dbtut.com\/wp-content\/uploads\/2021\/02\/dbtutlogo.jpg","width":223,"height":36,"caption":"dbtut"},"image":{"@id":"https:\/\/dbtut.com\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/dbtut.com\/#\/schema\/person\/be8bf54494b6a89e626cbed2c940599a","name":"Yusuf SEZER","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/dbtut.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/19675b3db2d4ce370af047187123e2055a2b254ede3f0e7d9bc934da478146f7?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/19675b3db2d4ce370af047187123e2055a2b254ede3f0e7d9bc934da478146f7?s=96&d=mm&r=g","caption":"Yusuf SEZER"},"url":"https:\/\/dbtut.com\/index.php\/author\/yusufsezer\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts\/17138","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/users\/485"}],"replies":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/comments?post=17138"}],"version-history":[{"count":0,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/posts\/17138\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/media\/17142"}],"wp:attachment":[{"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/media?parent=17138"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/categories?post=17138"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dbtut.com\/index.php\/wp-json\/wp\/v2\/tags?post=17138"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}