mysql - Time information of type DATETIME alternative with BIGINT or DOUBLE (Unix Time) -


let's i'm stuck mysql 5.5 , i'm not able change 5.6 or 5.7, therefore i'm not able use datetime fractional seconds, information need. know best solution. 1 of alternatives i've been thinking use bigint save information form of bash command date +%s%n (unix time) or double if want separate seconds , fractions of seconds (i.e. date +%s.%n).

what drawbacks of such configuration? besides not using standard format.

you can use bigint store unix time in milliseconds (javascript timestamps).

or, either of other solutions (fractional-second time in double or unix time in bigint) work.

the important thing table of size ability index column.


Comments

Popular posts from this blog

What is happening when Matlab is starting a "parallel pool"? -

php - Cannot override Laravel Spark authentication with own implementation -

Qt QGraphicsScene is not accessable from QGraphicsView (on Qt 5.6.1) -