Re: [sqlalchemy] How to query data from a relational table according to a list of matched conditions?

2009-12-22 Thread Michael Bayer
On Dec 22, 2009, at 1:39 AM, Olli Wang wrote: > Hi, is it possible to query data from a relational table according to > a list of matched conditions? For example, assume I have two tables, > Article and Keywords, in a Many-to-Many relationship, and have data > like this: > > Article 1 has keywor

[sqlalchemy] How to query data from a relational table according to a list of matched conditions?

2009-12-21 Thread Olli Wang
Hi, is it possible to query data from a relational table according to a list of matched conditions? For example, assume I have two tables, Article and Keywords, in a Many-to-Many relationship, and have data like this: Article 1 has keywords (k1, k2, k3, k4) Article 2 has keywords (k2, k3, k5, k6)