Re: [python-sql] arbitrary strings and ints in where

2019-03-19 Thread Brosefski
Thank you! I have one more question: I'm not sure how I would do this but I was wondering if there was a programmatic way to select items from a list. Ie: I have a table: table1 = Table("table1", "public") and I have a list of fields names like so: ["field1", "field2"] I would like to be able

Re: [python-sql] arbitrary strings and ints in where

2019-03-18 Thread 'Cédric Krier' via python-sql
On 2019-03-17 19:42, [email protected] wrote: > One thing I'm finding out about this and I'm not sure if this is possible or > not but I'm not able to createarbitrary where int or strings expressions > without passing a table column: > > Doesn't work: > tmp = 'abc' > select.where = tmp == 'a