WHERE condition in SQL query: select `a` not equal to '0'
P粉642436282
P粉642436282 2024-04-03 13:29:44
0
1
336

I have:

`a` int DEFAULT '0'

From the thousands of records I have, I want to select a that do not have a value of 0 or empty.

I tried something similar.

"SELECT * FROM TABLE WHERE (`a` unequal '0' or '') ;"

P粉642436282
P粉642436282

reply all(1)
P粉807397973

Try this

SELECT * FROM TABLE WHERE (`a` '0' or `a` = '' or `a` is null)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template