MySQL Forums
Forum List  »  Triggers

Re: Help with a trigger
Posted by: Peter Brawley
Date: August 11, 2015 11:38AM

What is CNG? I would have thought MySQL complains it's undefined, but where's your error tracking?

In ...

SELECT concat(
CNG,
cast( Year( curdate( ) ) AS char ),
cast( weekofyear( curdate( ) ) AS char )

... why SELECT? Why Cast()? Aren't you just building a string like YYYYWW?



Edited 1 time(s). Last edit at 08/15/2015 09:17AM by Peter Brawley.

Options: ReplyQuote


Subject
Views
Written By
Posted
2073
August 10, 2015 01:16PM
1015
August 10, 2015 03:01PM
1057
August 10, 2015 03:39PM
1020
August 11, 2015 09:21AM
1037
August 11, 2015 09:35AM
Re: Help with a trigger
1076
August 11, 2015 11:38AM
1030
August 11, 2015 11:43AM
1000
August 11, 2015 12:25PM
1033
August 15, 2015 09:20AM


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.