How to replace single quote in Java with Postgres?
select * from where id in ('<45646300.KDSFJJSKJSDF95'fdgdfgdfgd>', 'fdgdfgdg');
I always use params like
select * from where id = ?;
But in this case i have problem, where i have ‘in’ statement with string passed to it.
I wish to replace all dangerous chars
It would be better to continue using
PreparedStatements rather than to escape characters manually.In the case of
INclause you can generate a query with appropriate number of?s dynamically.