主键id在mysql语句中的实现方式:
SELECT CONCAT(REPLACE(unix_timestamp(current_timestamp(4)),'.',''),FLOOR(1 + (RAND() * 100001))) AS id;
主键id在mysql语句中的实现方式:
SELECT CONCAT(REPLACE(unix_timestamp(current_timestamp(4)),'.',''),FLOOR(1 + (RAND() * 100001))) AS id;