jitendra
jitendra

Reputation: 1458

Web2Py - How to use SELECT query with WHERE.. IN keyword

I have a table called User and in Web2Py I would to get Users that match certain ids say (1,5,11,16).

Do I have to write SQL query itself or can it be elegantly done using Web2Py style queries.

Upvotes: 2

Views: 5650

Answers (1)

John La Rooy
John La Rooy

Reputation: 304205

The belongs operator

Upvotes: 5

Related Questions