Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wait for the value to change in table and then execute next procedure

Status
Not open for further replies.

mili3

Programmer
Feb 12, 2006
6
US
Hi

I need help with a procedure , which checks for a value ina tableA.col , if the value is true then executes the next procedure. How do we write a procedure to check for the value in the table and wait for next execution..

Mili
 
Hi

I think you want a [tt]trigger[/tt]. Something like this :
Code:
create trigger [green][i]nameofthetrigger[/i][/green]
after insert or update of [green][i]nameofthecolumn[/i][/green] on [green][i]nameofthetable[/i][/green]
for each row
when (new.[green][i]nameofthecolumn[/i][/green] is null)
call [green][i]nameoftheprocedure[/i][/green];

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top