ABKYH 发表于 2018-10-14 14:36:04

SQL server 空值的妙用

  如果 传入参数为空,则查询条件默认为true
  select 1 from table where field1 =isnull(@field1 ,field1)
  其他的待补充 。。。。。。。。。。。。。。

页: [1]
查看完整版本: SQL server 空值的妙用