executesql

1
2
3
4
def executesql(query,param):
    from django.db import connection
    cursor = connection.cursor()
    return cursor.execute(query,param)

More like this

  1. print SQL statements by zuzelvp 1 year, 12 months ago
  2. sql to dict by amitu 2 years, 10 months ago
  3. Drop all tables in MySQL database by mpasternacki 2 years ago
  4. SQL Function Decorator by proc 3 years, 5 months ago
  5. by mikko 4 years, 9 months ago

Comments

(Forgotten your password?)