Jump to content

find in ()


This topic is 797 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Is there a way to do a find that is similar to the mysql type WHERE field IN()

Each record in a table has an unique ID and I'd like to find many in one operation.  It seems like this would be a common find operation, but I can't find any mention of it.

 

select * from `table` where `id` IN (1,2,3,4,5)

 

Link to comment
Share on other sites

3 hours ago, jimlongo said:

Each record in a table has an unique ID and I'd like to find many in one operation.

I am assuming you mean a "regular" Filemaker find, not ExecuteSQL? If so, this would be performed as any OR find: by creating a separate find request for each item on the list.

Another option is to place the search values, separated by carriage returns, in a global field and define a relationship matching the global field to the ID field in your table. Then you can use the Go to Related Record [] script step to create a found set of matching ID's only. 

 

Link to comment
Share on other sites

This topic is 797 days old. Please don't post here. Open a new topic instead.

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...

Important Information

By using this site, you agree to our Terms of Use.