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
更多追问追答
追问
不对。要求忽略所有为空的列。显示所有不为空的列
追答
是把Null 列变成不是Null?
Select
CST_NO=IsNull(CST_NO,''),
CST_NM=IsNull(CST_NM,''),
ACCT_NO1=IsNull(ACCT_NO1,''),
CURR1=IsNull(CURR1,''),
ACCT_NO2=IsNull(ACCT_NO2,''),
CURR2=IsNull(CURR2,''),
ACCT_NO3=IsNull(ACCT_NO3,'')
From YourTable
如果还不是,你列个要求的显示结果样式
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询