Mysql determines that multiple values are not 0

SELECT * FROM fs_info WHERE month = 2;
clipboard.png

judgment condition:
find the corresponding month, salary, commission and other information (the value in the red box). If the value is not 0, as long as one of the fields has a value, it will be displayed

.
Mar.05,2021

SELECT * FROM fs_info WHERE month=2 and 1+2+3+4+...+n>0;

SELECT * FROM fs_info WHERE month=2 and (a < > 0 OR b < > 0 OR c < > 0)

Menu