₦airaland Forum

Welcome, Guest: RegisterLoginWith GoogleTrendingRecentNew

Stats: 3,325,454 members, 8,422,131 topics. Date: Sunday, 07 June 2026 at 06:16 PM

Toggle theme

Help On Sql , Trigger In Partcular! - Programming - Nairaland

Nairaland ForumScience/TechnologyProgrammingHelp On Sql , Trigger In Partcular! (766 Views)

1 Reply

Help On Sql , Trigger In Partcular! by lolade123(op): 12:59pm On Jan 18, 2011
Hello gurus in da house,am a student and i have a problem on trigger.And the question goes thus:
When a new row is added to a table A , a column X in table B should be increased by one.
Now i need you guys to give me the clue to do this,
or if there is anyone who could write the statement for me.I really do appreciate you all thanks.
Re: Help On Sql , Trigger In Partcular! by Bossman(m): 7:12pm On Jan 18, 2011
Depending on your database of choice, this may vary a little. You can also google for better examples. Just typing this off the top of my head.

create trigger update
on TableB
for update as
if insert(table A)
begin
update table B
set column_B1 = columnB1 + 1
where ,
end
1 Reply

Help Out! On SQL INJECTIONVideo Tutorials On SQL, For FreeHelp On SQL!!!234

Learn Web ProgrammingStep One When Just Beginning To Learn Ethical HackingDoes Anyone Has An Idea Of How To Send SMS