Repositories icon indicating copy to clipboard operation
Repositories copied to clipboard

How to use 'AND' or 'OR' operator in findWhere

Open nahid opened this issue 9 years ago • 2 comments

I'm using this package for my project. I want to find an user where id=1 or username='username' but I can not do this.

How can I do this?

nahid avatar Feb 02 '16 09:02 nahid

I'll fix it.

SebastianBerc avatar Mar 17 '16 11:03 SebastianBerc

SELECT * FROM Customers WHERE id='1' AND username='username'; If you wanna select id=1 and username = with username

SELECT * FROM Customers WHERE id='1' OR username='username'; Tell me if it's work.

Stefanescul avatar Dec 12 '16 20:12 Stefanescul