Jump to content

[SOLVED] Perform advanced searches in SELECT statement


ktsirig

Recommended Posts

WHERE ID BETWEEN 56 AND 67

 

However, BETWEEN is inclusive:  i.e. 56 <= ID <= 67.  So if they are integers your example would be

WHERE ID BETWEEN 55 AND 66

 

or you could do it the long way

WHERE (ID > 56 AND ID < 67)

 

 

 

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.