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



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!