uuid_short替换

TiDB里不支持这个函数,可以试下这个:

mysql> begin; select @@tidb_current_ts; rollback;
Query OK, 0 rows affected (0.001 sec)

+--------------------+
| @@tidb_current_ts  |
+--------------------+
| 434832859614150657 |
+--------------------+
1 row in set (0.001 sec)

1 个赞