当前位置: 代码迷 >> VB Dotnet >> VB.NET SQL语句空值轮换
  详细解决方案

VB.NET SQL语句空值轮换

热度:262   发布时间:2016-04-25 02:23:20.0
VB.NET SQL语句空值替换
建立一条查询,在ACCESS上运行没有问题,语句如下:
select customer, nz(sum(amount),0) as paid from tblcustomers 

能够实现如果amount合计为空时,显示为0,

但在vb.net中,nz()函数没有定义,用isnull()也不行,求指教。
------解决方案--------------------
SELECT customer, COALESCE(SUM(amount),0) as paid from tblcustomers 
  相关解决方案