phoenix-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cheyenne Forbes <cheyenne.osanu.for...@gmail.com>
Subject Can I reuse parameter values in phoenix query?
Date Thu, 08 Dec 2016 20:11:32 GMT
So instead of doing:

  query("select from table where c1 = ? or c2  = ?",  [my_id, my_id])

i would do:

  query("select from table where c1 = ?1 or c2  = ?1",  [my_id])

Mime
View raw message