Hi;<br>I have the following:<br><br># sql = 'alter table %s alter column %s set default "%%s";' % (store, col)<br># cursor.execute(sql, colValue)<br> cursor.execute('alter table %s alter column %s set default "%s";' % (store, col, colValue))<br>
database.commit()<br><br>Now I don't like that third line, so I tried the commented out lines, but I got an MySQLdb.OperationalError that the suggested default value could not be inserted. However, when I printed it out and tried to insert directly, no problem, and the 3rd line works fine. What gives?<br>
TIA,<br>beno<br>