Thursday, June 24, 2010

Re: How to do select from table where something in ('What','When','Where')

On Jun 24, 9:18 pm, thusjanthan <thusjant...@gmail.com> wrote:
> Hi,
>
> Can someone provide the syntax for doing the following in django
> queries:
>
> Select * from tableA where columnA in ('Value1','Value2','Value3')
>
> Cheers,
> nathan.

in.
http://docs.djangoproject.com/en/1.2/ref/models/querysets/#s-in
--
DR.

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

No comments:

Post a Comment