Forum OpenACS Development: Response to How to use a Tcl list of ints in a int bind var?

Collapse
Posted by russ m on

Because that requires that you know how long the list is. If you know $list_of_ids will always have 5 elements you can use

where id in (:id_1, :id_2, :id_3, :id_4, :id_5)
without any trouble, but if $list_of_ids can have anywhere from 1 to n elements you're SOL with that approach...