Jump to content

SELECT 2 possible variables


forumnz

Recommended Posts

or you could do:

 

SELECT * FROM table WHERE unit IN ('A', 'B')

 

The "BETWEEN A AND B" isn't a correct syntax and obviously doesn't do what you want to achieve. It will find if the field is in the range of two integers. Example:

 

SELECT * FROM table WHERE id BETWEEN 10 AND 100 //will find the values of id >= 10 AND <= 100

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.