[PyGreSQL] inserttable and get_tables syntax question

D'Arcy J.M. Cain darcy at PyGreSQL.org
Tue Apr 18 13:31:46 EDT 2006


On Tue, 18 Apr 2006 19:17:40 +0200
Christoph Zwerschke <cito at online.de> wrote:
>  >>> db.query('select * from mytable').getresult()
> 
> [(1, 'hello'), (2, 'world')]

Or, for a nicer output just print the query object.

>>> db.query('select * from mytable')

>From a script you have to "print" these, of course.

-- 
D'Arcy J.M. Cain
PyGreSQL Development Group
http://www.PyGreSQL.org


More information about the PyGreSQL mailing list