Jump to content
We've recently updated our Privacy Statement, available here ×

Where = Question


viking79

Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Can you post your SQL query?  Can you post the error?  I don't even know the data type of ID or what syntax you used in your WHERE clause, but if I assume for the moment that id is an integer data type, I would think either of the following would work:

SELECT
  id, field2, field3
FROM
  recordName
WHERE
  id=1 OR id=2 OR id=11
 
or

SELECT
  id, field2, field3
FROM
  recordName
WHERE
  id IN (1, 2, 11)

Hope that helps.

Carl

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...