problems with mysql db
Scott David Daniels
Scott.Daniels at Acm.Org
Mon Jun 29 11:52:48 EDT 2009
golu wrote:
> here i have posted my code...plz tell why am i getting the error "int
> argument required" on the hash marked line(see below) although i am
> giving an int value
> ... url_count += 1
> curse.execute("INSERT INTO URL_TABLE VALUES(%d,%s)",
> (url_count,file_path)) #error
> ...
Try something more like:
> ... url_count += 1
> curse.execute("INSERT INTO URL_TABLE VALUES(%d,%s)",
> [(url_count,file_path)])
> ...
More information about the Python-list
mailing list