G
G
gomerIT2020-09-30 14:57:20
MySQL
gomerIT, 2020-09-30 14:57:20

In what type of data in Mysql to store unix time?

I need to store unix time in a database, but I don't know what type of data to choose

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2020-09-30
@gomerIT

UNIXTIME is a number, so you need to store it in INTEGER.
insert a number, extract either a number or using the date function.
Here are mysql + php examples .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question