yathit / ydn-db

Javascript database module for Indexeddb, Web SQL and localStorage storage mechanisms supporting version migration, advanced query, SQL and transaction.
Apache License 2.0
503 stars 41 forks source link

Querying with multiple conditions on the same field #38

Closed swiftanthony closed 9 years ago

swiftanthony commented 9 years ago

Hi.

How do I write a query similar to SQL IN (or OR WHERE) ?

Something like SELECT * FROM table WHERE id IN (1,5,10) or SELECT * FROM table WHERE id = 1 OR id = 5 OR id = 10

Thanks

yathit commented 9 years ago

Please use multiple query as describe here http://dev.yathit.com/ydn-db/doc/query/multi-query.html

swiftanthony commented 9 years ago

Thank you for quick response. Will check it out.