wdcsx 发表于 2016-11-8 06:32:56

SQL 常用函数

  
  1. 判断是否为空
  Oracle中
  nvl()的用法:   
nvl(exp1,exp2)       如果exp1不为空,返回exp1,否则返回exp2
  
  SQL Server中
  isnull(exp1,exp2)   如果exp1为空,返回exp2,否则返回exp1
页: [1]
查看完整版本: SQL 常用函数