Hi, Antoni Aloy Thanks a lot. I got it.
cheers Lee On Dec 13, 11:46 pm, "Antoni Aloy" <[email protected]> wrote: > http://docs.djangoproject.com/en/dev/ref/models/querysets/ > > Check for values for exmple. Has a fields property that will allow you > to specify the fields you want to return. > > 2008/12/13 Lee <[email protected]>: > > > > > > > > > Hi, James Bennett > > > Thanks for you reply. > > > Howerver, I have already read the database API documentation, and I > > can't find this method. > > > On Dec 13, 11:13 pm, "James Bennett" <[email protected]> wrote: > >> On Sat, Dec 13, 2008 at 5:55 AM, Lee <[email protected]> wrote: > >> > 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? > > >> There is a method which will do this, and it is listed in the database > >> API documentation alongside all the other querying methods. > > >> -- > >> "Bureaucrat Conrad, you are technically correct -- the best kind of > >> correct." > > -- > Antoni Aloy López > Blog:http://trespams.com > Site:http://apsl.net- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

