摘要:
and ( @kscode is null or ( tbzdqk.kscode = @kscode and @kscode is not null ) ) 在where 条件语句之后加上如此 语句即可实现。其中 @kscode就是那个可变参数,这里我将@kscode这个参数默认设为 null。函数定义(关键看@kscode的定义)如下:ALTER FUNCTION [dbo].[FeatureStat] (-- Add the parameters for the function here@Annual smallint , @kscode nvarchar(15) = null )RET 阅读全文
posted @ 2012-07-13 11:05
liwenqiang
阅读(658)
评论(0)
推荐(0)
浙公网安备 33010602011771号