There is a Cost Center table called "cost" in it, it contains IDs (field "code") that you would like returned in a SELECT. The however is that the data needs to be compared to a comma-separated string, which are the values that I need to select.
Exemplo:
SELECT codigo
FROM ccusto
WHERE codigo IN('1,2,3');
Returno da consulta:
1
Retorno esperado da consulta:
1
2
3
What operator or function can be used in this case?