Hi,everyone.

    The database-abstraction API  in django can query the database by
using table.objects.filter('x =1') or  table.objects.get('x = 1').
However, these build method will return all the columns in the table
which are satisfied x = 1, like select * from table where x = 1.

    If I want to return a specified column in this situation without
using SQL query (select y from table where x =1), how to do it?


Thanks
Lee
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to