My problem is that I will not always receive the variables, so I need a way that does not make them mandatory even by declaring them, for example in the query below:
"SELECT * FROM clientes WHERE clientes.nome = :nome";
Var :nome
is required;
Then I need that even if the variable :nome
does not contain a value, the query returns me all the clients