Click here to Skip to main content
15,889,281 members
Articles / Programming Languages / SQL

Combining Insert/Update to one Procedure

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
3 Jan 2012CPOL 7.2K  
CREATE PROCEDURE sp_Insert ( @ID int, @Name char(20), @Mode char(20) ) ASif @Mode='Insert in Employee'Begin insert into Employee(Employee_ID,Employee_Name)values(@ID,@Name)Endelse if @Mode='Insert in Student'Begin insert into...

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions