Try or
:
WHERE id = 3 or id = 4
Or the equivalent in
:
WHERE id in (3,4)
More Related Contents:
- What is better subquery vs literal on IN clause in mysql
- SQL query return data from multiple tables
- Select all columns except one in MySQL?
- quick selection of a random row from a large table in mysql
- MySQL: is a SELECT statement case sensitive?
- MySQL SELECT only not null values
- What is MySQL row order for “SELECT * FROM table_name;”?
- Combine Multiple child rows into one row MYSQL
- MySQL SELECT increment counter
- MySQL select statement with CASE or IF ELSEIF? Not sure how to get the result
- How to get an age from a D.O.B field in MySQL?
- How does MySQL’s ORDER BY RAND() work?
- MySQL #1093 – You can’t specify target table ‘giveaways’ for update in FROM clause
- MySQL How do you INSERT INTO a table with a SELECT subquery returning multiple rows?
- How do I get the first day of the week of a date in mysql?
- MySQL INSERT INTO … VALUES and SELECT
- MySQL error 1241: Operand should contain 1 column(s)
- How to select one row randomly taking into account a weight?
- quick selection of a random row from a large table in mysql
- Converting SELECT DISTINCT ON queries from Postgresql to MySQL
- Compare only day and month with date field in mysql
- mysql select sum group by date
- MySQL – SQL_BIG_SELECTS
- MySQL INNER JOIN select only one row from second table
- Comma separated string of selected values in MySQL
- MySQL Select Query – Get only first 10 characters of a value
- What is the default MySQL JOIN behaviour, INNER or OUTER?
- Insert data into table with result from another select query
- How to use Table output from stored MYSQL Procedure
- MySQL cartesian product between two SELECT statements