About 763,000 results
Open links in new tab
  1. PL/SQL IF Statement - Oracle Tutorial

    This tutorial shows you how to use the PL/SQL IF statement to either execute or skip a sequence of statements based on a specified condition.

  2. IF-THEN logic in SELECT and WHERE with CASE expressions in Oracle SQL

    Dec 7, 2023 · There’s no if keyword in SQL. If you want to do if-else-then logic in select, where or anywhere else in a statement, you need a case expression. This is a series of when clauses that the database runs in order: For example, if you want to map exam correct percentages to grade letters according to these rules:

  3. 14.38 IF Statement - Oracle Help Center

    The IF statement either runs or skips a sequence of one or more statements, depending on the value of a BOOLEAN expression. ( boolean_expression ::= , statement ::= ) Expression whose value is TRUE, FALSE, or NULL. The first boolean_expression is always evaluated.

  4. oracle database - If statement within Where clause - Stack Overflow

    Mar 14, 2013 · I am working with a query which contains "IF" statements within a "WHERE" clause. But PL\SQL Developer is giving some errors while executing it. Can anyone please help me with the correct query?

  5. Oracle / PLSQL: IF-THEN-ELSE Statement - TechOnTheNet

    This Oracle tutorial explains how to use the IF-THEN-ELSE statement in Oracle with syntax and examples. In Oracle, the IF-THEN-ELSE statement is used to execute code when a condition is TRUE, or execute different code if the condition evaluates to FALSE.

  6. sql - If statement in select (ORACLE) - Stack Overflow

    So simple you can use case statement here. CASE WHEN ISSUE_DIVISION is null then "Null Value found" //give your option. Else 1 End. This will return 0 if both values are null which might not be what the OP expects / wants (see my comment on …

  7. IF Statement - Oracle

    There are three forms of IF statements: IF-THEN, IF-THEN-ELSE, and IF-THEN-ELSIF. The simplest form of IF statement associates a Boolean expression with a sequence of statements enclosed by the keywords THEN and END IF. The sequence of statements is executed only if the expression returns TRUE.

  8. Oracle PL/SQL IF THEN ELSE Statement: ELSIF, NESTED-IF - Guru99

    Jun 28, 2024 · Syntax for IF THEN Statements: -executed only if the condition returns TRUE . <action_block> In the above syntax, keyword ‘IF’ will be followed by a condition which evaluates to ‘TRUE’/’FALSE’. The control will execute the <action_block> only if …

  9. If Else in PL SQL – Fully Explained with Examples

    Aug 18, 2024 · Learn if else in PL SQL and more conditional statements used in Oracle viz if-then-end if | if-then-else-end if | if-then-elseif-endif | Nested if statements with examples. Sequence of statements can be executed using IF statement based on the condition evaluation.

  10. PL/SQL IF THEN Statement - Online Tutorials Library

    Learn how to use the IF THEN statement in PL/SQL for conditional processing. Understand syntax, examples, and practical applications.

  11. Some results have been removed
Refresh