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

mysql - How to enter php data into a html multiple select box -

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

c++ - Cassandra datastax cpp driver - avoiding unnecessary copies -