On Aug 13, 11:04 am, buddhasystem <[email protected]> wrote:
> Friends,
>
> I'm in need of an implementation which calls for using bind variables (in
> Oracle sense, not generic) in my SQL in a Django application.
>
> Any experience with that, anyone?

To use raw SQL with Django, see:
http://docs.djangoproject.com/en/1.2/topics/db/sql/#topics-db-sql

To add parameters to an ordinary Django query, use the
QuerySet.extra() method
http://docs.djangoproject.com/en/1.2/ref/models/querysets/#extra-select-none-where-none-params-none-tables-none-order-by-none-select-params-none

Note that Django placeholders always use the %s syntax regardless of
backend, so you'll need to use that rather than the named syntax
normally used with Oracle.

HTH,
Ian

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to