Código SQL [-]if (parametro is null) then select * from tabla else select * from table where x= : parametro
if (parametro is null) then select * from tabla else select * from table where x= : parametro