Discussion: Triggers and Flag bit
Afficher un message
Vieux 24/03/2008, 23h14   #1
Sharif Islam
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Triggers and Flag bit

I have a perl script (uses sql query) that will run if there is any
update in the row. Currently, I am a trigger that sets the DateModified
field with getdate() Then my perl script looks for certain range of
modified dates and runs the necessary query.

I am trying to come up with a different mechanism where I don't have to
use the date field. I am looking into flag bits. But not sure how
to use it.

Should I create a trigger that will set the flag bit after any update?
This way the script will just look for the updated records, regardless
of what time it was updated. Maybe I am misunderstanding flag bits, then
after another subsequent update how would the perl/sql script know which
records were updated? I hope this make sense.

thanks.

--s
  Réponse avec citation
 
Page generated in 0,04654 seconds with 9 queries