Want to become a Vibe Coder? Join Vibe Coding Training here
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Create Insert Trigger
WhatsApp
Vithal Wadje
Oct 30
2014
998
0
0
Create trigger emp on YorTableName
for
insert
as
begin
Declare @InsertparamName varchar(20)
//storing inserted value into varriable
select @InsertparamName =i.Namefrom inserted i;
//inserting above first table records into second table
insert into secondTable(City)values(@InsertparamName )
End
insert trigger
trigger
sql
Up Next
Create Insert Trigger