parameter in "in (:par)"
parameter in "in (:par)"
that type to put to the parameter "par1" in "in (: par1)"?
You can use a macro. Set the SQL property of the TSmartQuery component to the following:
The following code can be used to assign value to the macro:
Code: Select all
SELECT * FROM table WHERE campo IN (&val)Code: Select all
SmartQuery.MacroByName('VAL').Value := '''val1'', ''val2'', ''val3''';ok, but if SQL property of the TSmartQuery is
where opc1 is macro: "and campo2=:par2"
and opc2 is macro: "and campo3 IN (val1,val2,...)"
I can put in macro opc2: "and campo3 IN (&val)"?
thanks
Code: Select all
select * from table where campo1=:par1 &opc1 &opc2and opc2 is macro: "and campo3 IN (val1,val2,...)"
I can put in macro opc2: "and campo3 IN (&val)"?
thanks