in reply to
DBI order by clause and placeholders
For MySQL (not T-SQL or Oracle) there's an extra trick. You can use ? as a placeholder for a comma separated list:
SELECT * FROM table WHERE foo IN (?)
[download]
Which you then feed a string like
join(',', @values)
.
Comment on
Re: DBI order by clause and placeholders
Select
or
Download
Code
In Section
Seekers of Perl Wisdom