I am trying to make a request that selects everything with id 6. The problem is that I cannot get it to work. Here's what the code looks like at the moment:
query = db.GqlQuery("SELECT * FROM Users WHERE id = 6")
result = query.get()
for result in query:
self.response.out.write(result.username)
There are no errors or anything but just displaying the username. Has anyone had this problem before or knew what I did wrong?
source
share