createproc test
@pValuenvarchar(20),
@pActionintasbegin
delcare passedvalues nvarchar(20)
set passedvalues =''-- something your want.-- insertif@pAction=1insertinto tb values(@pValue)
if@pAction=2update tb set col =@pValueif@pAction=3deletefrom tb where col =@pValueif@pAction=4select col from tb
print passedvalues
end
create proc test @pValue nvarchar(20), @pAction int as begin delcare passedvalues nvarchar(20) set passedvalues = '' -- something your want. -- insert if @pAction =1 insert into tb values(@pValue)