As the other tutors have suggested, look into doing the SQL updates directly, rather than format strings of SQL commands.
A major reason is because strings do not natively support the representation of nested, grammatical things like sentences or SQL commands. It's really easy to write a string formatting program that works on simple input but will break spectacularly on real-world data. Do a web search for the term "Bobby Tables" for a concrete explanation of the problem. _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor