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
1840
August 10, 2015 01:16PM
906
August 10, 2015 03:01PM
941
August 10, 2015 03:39PM
923
August 11, 2015 09:21AM
906
August 11, 2015 09:35AM
Re: Help with a trigger
956
August 11, 2015 11:38AM
914
August 11, 2015 11:43AM
879
August 11, 2015 12:25PM
895
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.