About 15,800,000 results
Open links in new tab
  1. MySQL If statement with multiple conditions - Stack Overflow

    Feb 22, 2017 · I want to write IF statement inside a Stored procedure in MySQL in the following way: IF (exp1 and exp2 and exp3) or exp4 I know MySQL will treat IF() as a function call.

  2. sql - Mysql select with multiple condition - Stack Overflow

    Sep 5, 2019 · MYSQL SELECT with INNER JOIN with multiple WHERE/CONDITIONS from the same column

  3. SELECTING with multiple WHERE conditions on same column

    If you have multiple values in a column, you can use WHERE flag LIKE "%Volunteer%" AND flag LIKE "%UPLOADED%" not really applicable seeing the formatted table.

  4. How to Use Multiple WHERE Conditions in a Single Query

    Learn how to apply many different conditions to filter data you want to retrieve in SQL.

  5. CASE WHEN in MySQL with Multiple Conditions - StackHowTo

    Aug 1, 2021 · CASE expression allows you to add if-else logic to a query. In general, you can use CASE expression anywhere, for example in SELECT, WHERE and ORDER BY clauses. CASE value WHEN value1 THEN instruction1 WHEN value2 THEN instruction2 …

  6. How to use combine multiple conditions in SQL in 5 steps

    Jan 23, 2021 · This article discusses how to combine multiple conditions in a MySQL query. We’ll learn how to combine multiple conditions in the WHERE clause. Example Syntax : SELECT col1, col2, … coln FROM table WHERE col3 LIKE "%some-string%" AND col4 = 55;

  7. Multiple WHERE with AND & OR Operators : MySQL - BrainBell

    Jul 31, 2023 · In MySQL and MariaDB, you can use multiple WHERE clauses with AND and OR operators to create complex conditions for your queries. These operators allow you to combine multiple conditions to filter data based on specific criteria.

  8. MySQL: Combining the AND and OR Conditions - TechOnTheNet

    This MySQL tutorial explains how to use the AND condition and the OR condition together in a MySQL query with syntax and examples. The MySQL AND condition and OR condition can be combined in a SELECT, INSERT, UPDATE, or DELETE statement.

  9. MySQL IF Statement with Multiple Conditions - Online …

    Learn how to use the MySQL IF statement with multiple conditions in your queries for effective data handling and decision making.

  10. MySQL: How to Use Case Statement with Multiple Conditions

    Feb 5, 2024 · You can use the following syntax in MySQL to use a CASE statement with multiple conditions: SELECT id, team, position, ( CASE WHEN (team = 'Mavs' AND position = 'Guard') THEN 101 WHEN (team = 'Mavs' AND position = 'Forward') THEN 102 WHEN (team = 'Spurs' AND position = 'Guard') THEN 103 WHEN (team = 'Spurs' AND position = 'Forward') THEN 104 ...

  11. Some results have been removed
Refresh