Hi;<br>I have this code:<br><br> sql = "insert into %s (%s) values ('%%s');" % (personalDataTable, string.join(cols[1:], ', '))<br># cursor.execute(sql, string.join(vals[1:], "', '"))<br>
cursor.execute('insert into %s (%s) values ("%s");' % (personalDataTable, string.join(cols[1:], ', '), string.join(vals[1:], '", "')))<br><br>Now, if I uncomment the 2nd line and comment the third, the command fails because, apparently, that "');" at the tail end of sql (1st line) gets chopped off. Why??<br>
TIA,<br>beno<br><br>(Note to self: enterPeople3.py)<br>