where

where [user]=@user
#IF @prod..NULL
#ELSE
and id in('@prod')
#ENDIF

你可能感兴趣的:(where)