I have the following SQL command in the SQL property of a TIBQuery component in Delphi.
SQL command used in the parameterized component:
select pro_codigo, pro_nome
from produtos
where pro_fis_codigo = :fis_codigo
and pro_bloqueado in (:bloqueado)
SQL command without parameters:
select pro_codigo, pro_nome
from produtos
where pro_fis_codigo = 1
and pro_bloqueado in (1,2)
Is there any way to use the :bloqueado
parameter as shown below?
Query.PramByName(bloqueado).AsString:= '1,2'