UID generation from EPOCH SELECT UNIX_TIMESTAMP() * 1e3 + 1; +--------------------------+ |UNIX_TIMESTAMP() * 1e3 + 1| +--------------------------+ |1642249326001 | +--------------------------+