Login

executesql

Author:
amitu
Posted:
March 20, 2009
Language:
Python
Version:
1.0
Tags:
sql
Score:
1 (after 1 ratings)

A helper function for quick and dirty sql calls.

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. sql to dict by amitu 5 years, 11 months ago
  2. print SQL statements by zuzelvp 5 years ago
  3. SQL Function Decorator by proc 6 years, 6 months ago
  4. sqltojson by amitu 5 years, 11 months ago
  5. Load customized SQL by roppert 6 years ago

Comments

Please login first before commenting.