I would like to construct a query that searces on a variable list of primary keys.
Example: Lkeys = [12, 23, 15, 17] ## python - style list of integers
Select column from table where ID in Lkeys; ## mysql statement?


Is this possible, or does one have to generate a query for each key or generate
a query with multiple ORs?


This will have to be run on a *nix server with version prior to 4.0, I believe.
Solutions, comments and pointers to relevant documentation is all welcome.


Thanks
Tim Johnson

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]



Reply via email to