MySQL Forums
Forum List  »  Triggers

Re: calculated field
Posted by: John Heinze
Date: November 28, 2014 02:47PM

I figure it out!
CREATE DEFINER = CURRENT_USER TRIGGER `ISPBG`.`tblCircuitID_BEFORE_UPDATE` BEFORE UPDATE ON `tblCircuitID` FOR EACH ROW
begin
set @vCID = (select concat_ws('-',new.CustomerIDFK,new.NodeNumIDFK,new.ONT,new.VLAN) from tblCircuitID where CustomerIDFK = old.CustomerIDFK);
set new.CID = @vCID;
end;

Options: ReplyQuote


Subject
Views
Written By
Posted
2577
November 28, 2014 11:37AM
1675
November 28, 2014 12:40PM
Re: calculated field
1434
November 28, 2014 02:47PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.