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
715
April 13, 2021 11:54AM
401
April 13, 2021 02:54PM
346
April 14, 2021 09:24AM
331
April 14, 2021 09:54AM
Re: Why isn't this working?
347
April 14, 2021 10:26AM
342
April 14, 2021 02:06PM
351
April 14, 2021 04:06PM


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.