Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unix time in SQL

Tags:

sql

mysql

Is it possible to get the current UNIX timestamp with sql?

like image 796
Rakeem Avatar asked Jul 18 '10 10:07

Rakeem


1 Answers

Try UNIX_TIMESTAMP():

SELECT UNIX_TIMESTAMP();
like image 84
Victor Welling Avatar answered Oct 11 '22 15:10

Victor Welling