mysql - SQL Query for a range of values and one single value -


I am trying to write a query in MySQL to select all the columns from a table where values ​​1 and 10 Are between or equal to 15.

I know that this will look something like this, but it is not right:

  SELECT * from some of the factors where value_id between 1 and 10 ... and Value_id = '15 ' 

... where (value_id between 1 and 10 ) Or (value_id = 15)

Pantentes have been included for clarity.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -