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

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

  1. 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. If no conditions are true, it returns the value in the ELSE clause.

  2. The SQL CASE expression allows you to evaluate a list of conditions and returns one of the possible results. The CASE expression has two formats: simple CASE and searched CASE. You can use the CASE expression in a clause or statement that allows a valid expression.

  3. 3 Σεπ 2024 · CASE can be used in any statement or clause that allows a valid expression. For example, you can use CASE in statements such as SELECT, UPDATE, DELETE and SET, and in clauses such as <select_list>, IN, WHERE, ORDER BY, and HAVING. Transact-SQL syntax conventions.

  4. 13 Ιουν 2021 · 7 Answers. Sorted by: 82. The complete syntax depends on the database engine you're working with: For SQL Server: CASE case-expression. WHEN when-expression-1 THEN value-1. [ WHEN when-expression-n THEN value-n ... [ ELSE else-value ] END. or: CASE. WHEN boolean-when-expression-1 THEN value-1. [ WHEN boolean-when-expression-n THEN value-n ...

  5. 2 Ιουν 2023 · SQL CASE Statement Syntax. The syntax of the SQL CASE expression is: CASE [expression] WHEN condition_1 THEN result_1 WHEN condition_2 THEN result_2 ... WHEN condition_n THEN result_n ELSE result END case_name. The CASE statement can be written in a few ways, so let’s take a look at these parameters. Parameters of the CASE Statement

  6. 22 Αυγ 2024 · The CASE statement in SQL is a conditional expression that allows you to execute different logic based on certain conditions within a query. It is used to create new columns, customize values, or modify query outputs depending on specified criteria.

  7. 28 Ιουν 2023 · Here’s the general syntax for a simple case statement: CASE expression. WHEN value1 THEN result1. WHEN value2 THEN result2. ... ELSE default_result. END. With this syntax, if the expression matches value1, the result would be result1. If expression matches value2, the result would be result2, and so on.

  1. Γίνεται επίσης αναζήτηση για