how can I put mysql input without ([,])
Ria
g.vonrotz at chello.nl
Wed Jul 3 14:28:39 EDT 2002
Hi,
I have a question about list or string in Python/Jython.
If I get a select command from mysql en put it in a string (print) than I
can't use it.
example...
I wil know how many rows ther are in my database table:
>>>cursur.execute("select count(*) from table")
>>>data = cursur.fetchall()
>>>if data:
>>> for a in data:
... print a
...
([21345,])
how can I put only the 21345 without the ([,])??
Bennie,
More information about the Python-list
mailing list