Yahoo Αναζήτηση Διαδυκτίου

Αποτελέσματα Αναζήτησης

  1. 13 Ιουν 2021 · Sybase has the same case syntax as SQL Server: Description. Supports conditional SQL expressions; can be used anywhere a value expression can be used. Syntax case when search_condition then expression [when search_condition then expression]... [else expression] end Case and values syntax

  2. infocenter.sybase.com › help › topicCASE expressions - SAP

    The CASE expression provides conditional SQL expressions. You can use case expressions anywhere you can use an expression. The syntax of the CASE expression is as follows: CASE expression. WHEN expression THEN expression [, …] [ ELSE expression ] END. You cannot use a subquery as a value expression in a CASE statement.

  3. 7 Μαΐ 2017 · The simple way to achieve this goal is to add a CASE expression to your SELECT statement. In this article, we'll introduce you to the syntax, formats, and uses of the CASE expression. The CASE expression is a conditional expression: it evaluates data and returns a result.

  4. For example, you can use the CASE expression in statements such as SELECT, UPDATE, or DELETE, and in clauses like SELECT, WHERE, HAVING, and ORDDER BY. Oracle CASE expression has two formats: the simple CASE expression and the searched CASE expression. Both formats support an optional ELSE clause.

  5. 7 Δεκ 2023 · How to use CASE for IF-THEN logic in SQL SELECT. If you want to see the grade for each exam, select the case expression like a regular column: It’s a good idea to give the expression an alias. This is particularly important if the case is in a subquery.

  6. infocenter.sybase.com › help › topicCASE statement - SAP

    The CASE statement is a control statement that lets you choose a list of SQL statements to execute based on the value of an expression. If a WHEN clause exists for the value of value-expression, the statement-list in the WHEN clause is executed.

  7. The SQL CASE Expression. The CASE expression goes through conditions and returns a value when the first condition is met (like an if-then-else statement). So, once a condition is true, it will stop reading and return the result.