Skip to content

how to use two "equal" in where clause? #2150

Closed
@danicarla

Description

@danicarla

I'm using dexie.js and I wanted to make a query with two conditions

In MySQL I would do it like this:

SELECT * FROM tab WHERE age=20 AND gender='Male'

I tried something similar using dexie, but it doesn't work

db.tab.where("age").equals(20).and("gender").equals('Male').toArray()

Any ideia?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions