Why is this mysql syntax incorrect

I execute the following mysql query and get an error with the wrong syntax.

SELECT COUNT(*) FROM PS.INFO WHERE IPADDRESS='1.1.1.1' AND ID='YYY' AND (TYPE='PAID' 0R  TYPE='FREE') AND EXPIRYTIME IS NULL;

Please help me with the correct syntax?

+3
source share
3 answers

Wrote 0R(zero-R) instead of OR(OR).

+9
source

TYPE = 'PAID' 0R TYPE = 'FREE'

OR 

seems to have zero instead of O

+5
source

A mistake always tells you where to look. In this case, he says "about" 0R ... "

And of course, that zero, not O. It must be a word OR.

+4
source

All Articles