SQL Server
(1)NVL函数:格式NVL( string1, replace_with),当string1为null,则返回replace_with的值,否则返回string1的值,两个为null,则返回null;
(2)mod函数:求余函数,其格式为: mod(nExp1,nExp2),即是两个数值表达式作除法运算后的余数。
(3)执行存储过程:exec PROC_Name start_period,end_period,-1;
(1)NVL函数:格式NVL( string1, replace_with),当string1为null,则返回replace_with的值,否则返回string1的值,两个为null,则返回null;
(2)mod函数:求余函数,其格式为: mod(nExp1,nExp2),即是两个数值表达式作除法运算后的余数。
(3)执行存储过程:exec PROC_Name start_period,end_period,-1;