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

Trigger problem

Status
Not open for further replies.

rembrechts

Programmer
Apr 10, 2002
11
BE
I want to change two fields in a table when a record is created. I've written a trigger that should do the trick, but it won't. Can somebody help me?

Code:
create trigger Insert_TS_TBL_Unfinished before INSERT on TBL_Unfinished
  FOR EACH ROW
    BEGIN
     set new.Recordcreated_servertime = now();
     SET new.Recordmodified_Servertime = now();
    END
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top