I'm trying to build a dynamic SQL but I'm getting caught by not understanding how to work with the IN statement in the PDO Example:
$SQL = "select * from tabela where (campo in(:valor))";
$Query = Database::Prepare($SQL);
$Query->bindValue(":valor", "1,2");
$Query->Execute();
How to work with this statement in PDO? As a branch break I used the OR statement, but let's face it, it's not the best option! The Database is Postgres, but I think it is not the case, because I could not in MySQL either