erikcw wrote: > Hi, > > I'm trying to build a SQL string > > sql = """INSERT INTO ag ('cid', 'ag', 'test') VALUES(%i, %s, %d)""", > (cid, ag, self.data[parent][child]['results']['test']) >
I am guessing you want the string formatting operator here: sql = """...""" % (cid, ...) The comma creates a tuple. -- http://mail.python.org/mailman/listinfo/python-list