• 其他函数
LAST_INSERT_ID()
返回当前会话中最后一条插入或替换语句插入的文档ID。
相同的值也可以通过 @@session.last_insert_id 变量获取。
mysql> select @@session.last_insert_id;
+--------------------------+
| @@session.last_insert_id |
+--------------------------+
| 11,32 |
+--------------------------+
1 rows in set
mysql> select LAST_INSERT_ID();
+------------------+
| LAST_INSERT_ID() |
+------------------+
| 25,26,29 |
+------------------+
1 rows in set CONNECTION_ID()
返回当前连接的ID。
KNN_DIST()
返回KNN 向量搜索的距离。
最后更新于