Home » Database » DB » Bug #4855
passing value lists into query placeholders
Details
| Request #4855 | passing value lists into query placeholders |
|---|---|
| Submitted | 2005-07-19 08:20 UTC |
| From | tjerk dot meesters at gmail dot com |
| Assigned | danielc |
| Status | Wont fix |
| Package | DB |
| PHP Version | Irrelevant |
| Roadmaps | (Not assigned) |
Comments
[2005-07-19 08:20 UTC] tjerk dot meesters at gmail dot com
Description:
------------
I miss the feature to pass a value list (in combination with the SQL keyword 'IN') into a query like so:
<?php
$list = array(1,4,6);
$res = $db->query('SELECT * FROM product WHERE product_id IN (?)',$list);
?>
[2005-07-21 03:10 UTC] tjerk dot meesters at gmail dot com
Is there an alternative though? I like the portability of using placeholders.