This seems obvious, but I'm just not sure about the correct answer.
If I use the INSERT / UPDATE command in a single mysql query, can I get two different results from UNIX_TIMESTAMP ? That is, does the time change during a single request?
Example:
UPDATE my_table SET time1 = UNIX_TIMESTAMP(), ... ... time2 = UNIX_TIMESTAMP(), ...
Is it possible that time2 will be greater than time1 ?
(for those who ask what's good to set two columns to the same value - I use one for the added time and time so that I can only sort by one column)
If possible, provide some background information for your answer. Thanks!
source share