查询结果忽略表中为空的字段。其余字段显示。怎么写sql,在线等。急

忽略表中为空的字段。并显示全部非空字段。
2025-05-04 21:41:25
推荐回答(1个)
回答1:

--有多少字段加多少个 Is Not Null
Select * From YourTable Where CST_NO Is Not Null And CST_NM Is Not Null And ACCT_NO1  Is Not Null  And CURR1 Is Not Null  And ACCT_NO2  Is Not Null And CURR2 Is Not Null And ACCT_NO3 Is Not Null