I have a simple question about DBI. I have a list of names that I want to select for in a statement containing a placeholder (eg. SELECT val1,val2,val3 where val1 = ?). The list of val1 values is contained in an array. I want to loop through selecting each row like that and then print all of them out. I can find lots of examples for how to get those returned values INTO an array, but not the proper way to select based on an array of target values. There are also many more different types of execute/fetch statements now than there were when I was really playing with DBI.
Thanks for your help! Even a simple explanation of what should be in a loop and what can be done without one, etc. would be helpful.
In reply to Simple DBI question, select rows based on an array by novosirj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |