You would have to do something like this:
SELECT * FROM menu WHERE item_id = 1
UNION ALL
SELECT * FROM menu WHERE item_id = 1
UNION ALL
SELECT * FROM menu WHERE item_id = 2
More Related Contents:
- Error related to only_full_group_by when executing a query in MySql
- Find duplicate records in MySQL
- How to declare a variable in MySQL?
- Can you split/explode a field in a MySQL query?
- MySQL order by before group by
- MySQL Cannot Add Foreign Key Constraint
- Which is fastest? SELECT SQL_CALC_FOUND_ROWS FROM `table`, or SELECT COUNT(*)
- Grouping into interval of 5 minutes within a time range
- MySQL – ERROR 1045 – Access denied
- ERROR 1044 (42000): Access denied for user ”@’localhost’ to database ‘db’
- Difference between float and decimal data type
- Convert timestamp to date in MySQL query
- Parse date in MySQL
- mysql dynamic query in stored procedure
- mysql: get record count between two date-time
- LOAD DATA INFILE Error Code : 13
- Table is ‘read only’
- How to select one row randomly taking into account a weight?
- auto_increment by group
- Proper database model for a user feedback system (an interesting case)
- MySQL Errno 150
- MySQL – Replace Character in Columns
- Sort the rows according to the order specified in WHERE IN clause
- How do you manage databases in development, test, and production?
- MySQL distinction between e and é (e acute) – UNIQUE index
- MySQL OPTIMIZE all tables?
- What’s mysql’s “BETWEEN” performance over..?
- Deleting a row based on the max value
- mysql double-quoted table names
- MySQL giving “read ECONNRESET” error after idle time on node.js server