for some reason, this is bombing out:
print tbl,record
statmt="DELETE FROM '%s' WHERE email LIKE '%s'" %(tbl,record)
print statmt
self.cursor.execute(statmt)
error:
maillist_frogs [email protected]
DELETE FROM 'maillist_frogs' WHERE email LIKE '[email protected]'
Traceback (most recent call last):
File "./compare.py", line 123, in <module>
main()
File "./compare.py", line 117, in main
remove_mailgust = sql_mailgust.removeRow ("maillist_frogs",x)
File "./compare.py", line 81, in removeRow
self.cursor.execute(statmt)
File "build/bdist.macosx-10.6-intel/egg/MySQLdb/cursors.py", line 174, in execute
File "build/bdist.macosx-10.6-intel/egg/MySQLdb/connections.py", line 36, in defaulterrorhandler
_mysql_exceptions.ProgrammingError: (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''maillist_frogs' WHERE email LIKE '[email protected]'' at line 1")
Thanks!! :)
statmt="DELETE FROM %s WHERE email LIKE '%s'" %(tbl,record).