MySQL Forums
Forum List  »  Triggers

Re: Creating a trigger statement
Posted by: Phillip Ward
Date: November 04, 2013 07:20AM

You're missing a bracket in there.

   set Months_Depreciated = (YEAR( NOW() * 12 + Month(NOW())) - (YEAR(whenacquired) * 12) +Month(whenacquired); 
                                                             ^                                                ^
                                                             Bracket missing here ...                     ... or here.

Regards, Phill W.

Options: ReplyQuote


Subject
Views
Written By
Posted
2226
November 04, 2013 06:35AM
Re: Creating a trigger statement
1098
November 04, 2013 07:20AM
1218
November 04, 2013 09:21AM


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.