How to add a current string into an already existing list
Andreas Perstinger
andipersti at gmail.com
Sat Nov 2 09:03:11 EDT 2013
On 02.11.2013 12:58, Nick the Gr33k wrote:
> Trying to add the current filename into the existent 'downloads' column
> Somehow i don't think i just use the plus sign into an existing column.
> We don't try to add numbers here but add an extra string to an already
> existing array of strings(list).
[SNIP]
> # update specific visitor's download record
> cur.execute('''UPDATE visitors SET downloads = downloads + %s WHERE host
> = %s''', (filename, host) )
> ======================================================
Well, when do you understand that your MySQL problems have nothing to do
with Python?
Everything inside the triple quotes is MySQL specific, so it's a MySQL
problem whether you can use + to "add an extra string to an already
existing array of strings(list)".
This list is not a MySQL support forum.
Bye, Andreas
More information about the Python-list
mailing list