Open Memento1990 opened 5 years ago
When i bind an array like [1,2,3,4] into prepared_statement_bind_values, the real executing sql is '1,2,3,4'. That's bad news for IN in sql.
[1,2,3,4]
prepared_statement_bind_values
'1,2,3,4'
IN
What i want:
select .... where somefield IN (1,2,3,4)
But:
select ... where somefield IN('1,2,3,4')
When i bind an array like
[1,2,3,4]
intoprepared_statement_bind_values
, the real executing sql is'1,2,3,4'
. That's bad news forIN
in sql.What i want:
But: