约 726,000 个结果
在新选项卡中打开链接
  1. SQL CASE Expression - W3Schools

    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 …

  2. SQL CASE WHEN Explained: 10 Easy Examples for Beginners

    2024年1月16日 · In this article, you'll find real-world practical exercises using the CASE WHEN statement for data analysis. This statement enables analysts to craft customized logic for …

  3. CASE Statement in SQL Examples - SQL Server Tips

    2021年4月20日 · This tip will teach you when and how you can use CASE in T-SQL statements with several code examples to give you a better understanding.

  4. How to Use the CASE Statement in SQL (With Examples)

    With the syntax covered, let’s explore how to use the CASE statement within SELECT and other key SQL clauses. The CASE statement is frequently used within SELECT queries to modify …

  5. SQL CASE Statement Explained with Examples - Database Star

    2020年1月4日 · Here are some examples of the SQL CASE statement in SELECT queries. I find that examples are the best way for me to learn about code, even with the explanation above. …

  6. SQL CASE Statement - GeeksforGeeks

    2024年12月10日 · In this article, we'll learn the SQL CASE statement in detail, with clear examples and use cases that show how to leverage this feature to improve your SQL queries.

  7. SQL CASE Expression

    This tutorial shows you how to use two forms of SQL CASE expressions including simple CASE and searched CASE expressions.

  8. SQL CASE WHEN with Multiple Conditions – Syntax, Examples

    2025年8月13日 · Master SQL CASE WHEN with multiple conditions in MySQL, PostgreSQL, SQL Server & Oracle. Learn syntax, examples, and tips for interviews.

  9. CASE (Transact-SQL) - SQL Server | Microsoft Learn

    2024年11月22日 · 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 …

  10. Using CASE Statements in SQL SELECT Queries - Baeldung

    2024年11月29日 · CASE statements are a way to add if-then logic to SQL SELECT queries. They test conditions and return different values based on the results. This makes queries more …