SqlServer: isnull(字段,0)

oracle:     nvl(字段,0)
access:     iif(isnull(字段),0,字段)
mysql:      ifnull(字段,0);

 

可以利用NULL值函数实现。