A
A
av_tyschenko2016-02-22 18:08:45
MySQL
av_tyschenko, 2016-02-22 18:08:45

Why use datetime and not mktime?

Friends, perhaps a very stupid question, but not obvious to me.
Why use datetime and not mktime? After all, mktime is pure numbers, it will be faster to search for them in the database, or am I not understanding something?
What should I use for a highly loaded resource, and why would it be easier to make a selection from the database?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor, 2016-02-22
@av_tyschenko

DATETIME at the engine level is stored like timestamp 20160222182145 for example.
In each situation, they choose according to task
A read this
https://habrahabr.ru/post/61391/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question