This is my query:
"select cli.FANTASIA, dbsmp.VEICULO_PLACA, dbsmp.DTINICIOPREV, dbsmp.DTFIMPREV," +
" dbsmp.DTINICIOREAL, dbsmp.DTFIMREAL,dbsmp.CIDADE_DES,dbsmp.CIDADE_ORI, work.STATUS," +
" dbsmp.REF1 FROM dbsmp_work work inner join dbsmp "+
" on work.ID_SMP = dbsmp.ID_SMP inner join dbcliente cli "+
" on dbsmp.ID_CLIENTE = cli.ID_CLIENTE inner join dbSMP_MOTORISTA mot "+
" on dbsmp.ID_SMP = mot.ID_SMP where dbsmp.ID_CLIENTE = @IDCLIENTE "+
" and work.STATUS in('F') and work.tipo in ({0})";
In {0}
point, I want to insert a list of strings separated by ,
.
is there a way to pass this list using some method, or something like that, or i'll have to create another string manually, eg. looping in a list?