sqlSERVER常用函数及语法笔记:sqlserver常用函数
时间:2018-08-15 16:22:07 来源:写作资料库 本文已影响 人
1.将两张表求并用 union all(比用union效率高)
2.求上个月的当天 用 dateAdd(month,-1,日期)
3.求两个时间相隔多少天用DATEDIFF(DAY,@RQ3,@RQ4)
4.判断数据是否为空用 is null
时间:2018-08-15 16:22:07 来源:写作资料库 本文已影响 人
1.将两张表求并用 union all(比用union效率高)
2.求上个月的当天 用 dateAdd(month,-1,日期)
3.求两个时间相隔多少天用DATEDIFF(DAY,@RQ3,@RQ4)
4.判断数据是否为空用 is null
推荐访问