phoenix-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Taylor <jamestay...@apache.org>
Subject Re: Can I reuse parameter values in phoenix query?
Date Thu, 08 Dec 2016 21:29:04 GMT
Yes - use :1 instead of ?1

On Thu, Dec 8, 2016 at 12:11 PM Cheyenne Forbes <
cheyenne.osanu.forbes@gmail.com> wrote:

> 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