mysql current_timestamp as seconds code example Example: select milliseconds mysql SELECT UNIX_TIMESTAMP();