On Fri, 07 Jun 2013 14:24:30 -0400, Dave Angel wrote:
> On 06/07/2013 01:44 PM, ethereal_r...@hotmail.com wrote:
>>
>
>>
>> rows = cur.fetchall()
>>
>> for row in rows:
>> print row
>>
>>
>>
>>
>> Now assume that fetchall would print the following:
>
> I doubt if fetchall(
ethereal_r...@hotmail.com wrote:
> Hello, I'm working with PostgreSQL and Python to obtain 2 columns froma
> database and need to print it in a specific format.
>
> Here is my current code.
>
>
>
> #!/usr/bin/python
> # -*- coding: utf-8 -*-
>
> import psycopg2
> import sys
>
> con = None
>
On 06/07/2013 01:44 PM, ethereal_r...@hotmail.com wrote:
rows = cur.fetchall()
for row in rows:
print row
Now assume that fetchall would print the following:
I doubt if fetchall() prints anything. presumably it returns something,
extracted from the db.
LOEL