Comments - FROM_UNIXTIME

5 years, 5 months ago Dean Trower

UPDATE:

There is a method. You can force insertion of a "raw" UNIX time-value like this:

SET timestamp := 1522510200;
INSERT INTO t (ts) VALUES (NOW());
SET timestamp := DEFAULT;

It's rather clumsy, though!

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.