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

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

  1. 2 Ιουν 2023 · The CASE statement allows you to perform an IF-THEN-ELSE check within an SQL statement. It’s good for displaying a value in the SELECT query based on logic that you have defined. As the data for columns can vary from row to row, using a CASE SQL expression can help make your data more readable and useful to the user or to the application.

  2. 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.

  3. 13 Ιουν 2021 · Here you can find a complete guide for MySQL case statements in SQL. CASE WHEN some_condition THEN return_some_value ELSE return_some_other_value END

  4. 20 Απρ 2021 · In the T-SQL scripting language, you can use the SQL CASE statement to evaluate a condition and return one or more result expressions. This SQL Tutorial will teach you when and how you can use CASE in T-SQL statements.

  5. 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.

  6. 4 Νοε 2022 · With SQL, you can do this using the CASE statement. You use the CASE keyword together with the WHEN clause to execute a block of conditional statement code. You use a THEN statement to return the result of the expression. If none of the conditions are met, then you use a final ELSE clause to return a fallback result.

  7. The basic syntax of the SQL CASE statement is as follows: CASE. WHEN condition1 THEN result1. WHEN condition2 THEN result2. ... ELSE resultN. END. In this syntax, the CASE statement evaluates each WHEN condition in order, returning the corresponding result when a condition is true.

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