MySQL Forums
Forum List  »  Triggers

Re: Why isn't this working?
Posted by: John Frank
Date: April 14, 2021 10:26AM

Peter Brawley Wrote:
-------------------------------------------------------
> My mistake, I misread the code.
>
> "Timestamp" is a `Lighting Schedule` column? Or
> are you trying to set `Lighting`.`Last Updated` to
> the current time? In that case you need
> Current_Timestamp or Now().
>
> And btw, spaces and other illegal chars in MySQL
> database identifier names are error opportunities;
> don't use them. Likewise Hungarian notation style
> capitalisation of MySQL identifier names... it
> opens yet more error opportunities.

I'm trying to put the current time into `Lighting`.`Last Updated`

so how would I syntax the trigger?

also, I am pretty early on in the project. Thanks for the advice, switching that around won't take a lot of time

Options: ReplyQuote


Subject
Views
Written By
Posted
216
April 13, 2021 11:54AM
89
April 13, 2021 02:54PM
68
April 14, 2021 09:24AM
73
April 14, 2021 09:54AM
Re: Why isn't this working?
80
April 14, 2021 10:26AM
73
April 14, 2021 02:06PM
93
April 14, 2021 04:06PM


Sorry, only registered users may post in this forum.

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.