- wrote:
> e.g. ':apple:papaya:watermelon:... so on and so forth.
So somehow you need to convert that string into:
IN ('apple', 'papaya', 'watermelon')
or some such. But unfortunately, as we have discussed recently on this
forum, MySQL does not support dynamic queries within stored procedures.
That is, there is no equivalent of EXECUTE IMMEDIATE.
> i haven't considered inserting the values into a temp table. it looks
> easier though but if i were to do that, it looks kind of
> 'unconsolidated' (can't think of a proper term to describe it)
> but if this is the preferred way, i won't hesitate to use it.
I think the more common solution is to run dynamic queries from a host
language (Java, PHP, Perl, etc.), where you can build a query
dynamically and then execute that string as a SQL statement.
Regards,
Bill K.
>> Stay informed about: array parameter