Re: [sqlalchemy] simple: get max id in table

2018-04-24 Thread Simon King
On Tue, Apr 24, 2018 at 4:43 PM, Steve Murphy wrote: > I'm just not getting it: > > Want: select max(id) from table; > > attempt (latest): > > from sqlalchemy import * > from sqlalchemy.engine import reflection > from sqlalchemy import schema > from sqlalchemy import exc >

[sqlalchemy] simple: get max id in table

2018-04-24 Thread Steve Murphy
I'm just not getting it: Want: select max(id) from table; attempt (latest): from sqlalchemy import * from sqlalchemy.engine import reflection from sqlalchemy import schema from sqlalchemy import exc from psycopg2 import * import re import time import os targethost = "192.168.181.204" targetdb