create procedure XXX
   @type varchar(20)as
begin 
   if @type="ok"
   dothing为什么 if @type="ok" 这句是错误的?我想根据传进来的参数判断存储过程的执行。 正确的该怎么弄?