Skip to content Skip to sidebar Skip to footer

% Confuses Python Raw Sql Query

Following this SO question, I'm trying to 'truncate' all tables related to a certain django application using the following raw sql commands in python: cursor.execute('set foreign_

Solution 1:

Have you tried %%? That quotes a % in Python string-formatting.


Post a Comment for "% Confuses Python Raw Sql Query"