MySQL Forums
Forum List  »  PHP

Re: Update column when datetime = NOW()
Posted by: Peter Brawley
Date: February 20, 2020 11:32AM

Still the physical column you think you need would be redundant. Given table t with timestamp column ts, create a View on table t ...

select ..., ts<Now() as active, ...

... and show users results of a query that View rather than of a query on the underlying table.

Options: ReplyQuote

Written By
Re: Update column when datetime = NOW()
February 20, 2020 11:32AM

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.