I'm not sure if what I'm trying to do is possible at all. I'd like to be able to run a query in MySQL that does a simple Select, but uses the search criteria / select criteria from an external file to do the select on.
e.g.
SELECT * FROM lookup_table WHERE id IN (<import each individual id from external file>);
The id's will then be placed in a file. Reason I'm asking for this is that I can't create temporary tables in the database, but I can execute queries. The external file can be in any format that's required, but will contain a few hundred id's that I need to look up.
Is anything possible?