日期:2014-05-18 浏览次数:20528 次
CREATE PROC myPROC ( @name VARCHAR(20), @sex VARCHAR(10), @age INT ) AS SELECT * FROM people WHERE name = ISNULL( NULLIF(@name,'') ,name) AND sex = ISNULL( NULLIF(@sex,'') ,sex) AND age = ISNULL( NULLIF(@age,0) ,age)