导读: 1.将两张表求并用 union all(比用union效率高) 2.求上个月的当天 用 dateAdd(month,-1,日期) 3.求两个时间相隔多少天用DATEDIFF(DAY,...
1.将两张表求并用 union all(比用union效率高)
2.求上个月的当天 用 dateAdd(month,-1,日期)
3.求两个时间相隔多少天用DATEDIFF(DAY,@RQ3,@RQ4)
4.判断数据是否为空用 is null