简单无脑点的就这样
SELECT * FROM TABLE1
WHERE COL5='123456'
and (COL1!='' or COl2!='')
and (COL2!='' or COL3!='')
and (COL1!='' or COL3!='')
数据库中空字段分为
NULL ''
判断是否为NULL时用 IS NULL
判断是否为'' 用!=''
比如
select * from table where value !='';
select * from table where date IS NOT NULL;