PDO Parameterized Query - Reuse named placeholders?
Posted
by gamers2000
on Stack Overflow
See other posts from Stack Overflow
or by gamers2000
Published on 2010-03-12T10:42:11Z
Indexed on
2010/03/15
7:59 UTC
Read the original article
Hit count: 395
In essence, I have a value that I have to call a couple times in my SQL query. Thus, is it possible to reuse the same named placeholder in the statement e.g.
SELECT :Param FROM Table WHERE Column = :Param
, then simply bindValue(":Param"), and have the value be there for both :Params?
© Stack Overflow or respective owner