Problem with Parameter
Posted: Mon 31 Jul 2006 10:08
I want to use a Parameter in a SQL Statment like:
Status is declaratet as a VarChar.
The Parameter Status is a list off Strings.
This is an Exampel off the SQL Statment without Parameters:
The Problem is, that the Execute Statement is:
Which Parameter Type i must use for this?
Thanks for your Help!
Code: Select all
SELECT * FROM contracts where `status` in (:Status) order by id desc limit 50;The Parameter Status is a list off Strings.
This is an Exampel off the SQL Statment without Parameters:
Code: Select all
SELECT * FROM contracts where `status` in ('Eingestellt','Versendet','Kein Interesse') order by id desc limit 50;Code: Select all
SELECT * FROM contracts where `status` in ("'Eingestellt','Versendet','Kein Interesse'") order by id desc limit 50;Thanks for your Help!