how can I put mysql input without ([,])

Emile van Sebille emile at fenx.com
Wed Jul 3 23:54:18 EDT 2002


"Ria" <g.vonrotz at chello.nl> wrote in message
news:JHKU8.256512$yP6.9941766 at Flipper...
> And how about when I use:
> cursor.execute("select column_1, column_2, column_3 from tabel")
>

How about:

results = cursor.fetchall()

for column_1, column_2, column_3 in results:
    dostuff_with(column_1, column_2, column_3)


--

Emile van Sebille
emile at fenx.com

---------




More information about the Python-list mailing list