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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create Trigger examples?

Status
Not open for further replies.

CapsuleCorpJX

IS-IT--Management
Jun 23, 2004
70
0
0
US
I cant seem to find any create trigger examples.

Basically for each row that gets updated, i want to see what user is making the change, and depending on the username, I want to set a column for that row.

Can anyone point me in a good direction?
 
Hi,
We don't have recursive Triggers. WEll maybe in 6.x now I forget. The best you can do is create a LOG TABLE to record who is making the change.

Why not simply use the Variable

user

when inserting the row?


update blort
set myuser = user,
field = 7;

or something like that.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top