0 LIKES LikeUnLike
I want to build a query that allows users to choose between selecting a subset of records or choosing ALL records."SELECT * FROM items WHERE authorized = 'Yes' AND order = 1"Creates the subset. Without building an entirely new query, how can I alter this to select all records? For example I would like to write:"SELECT * FROM items WHERE authorized = * AND for_sale = * "But this is invalid SQL syntax. Is there a valid way to do it? As I said, I DONT want to have to write multiple query lines.
Tags:
Report (0) (0) | earlier
Latest activity: earlier. This question has 3 answers.