MySQL内置函数-版本、用户等函数
查看版本信息
mysql> select version(); +-----------+ | version() | +-----------+ | 8.0.18 | +-----------+ 1 row in set (0.00 sec)
查看当前数据库
mysql> select database(); +------------+ | database() | +------------+ | world | +------------+ 1 row in set (0.00 sec)
查看当前用户
mysql> select user(); +----------------+ | user() | +----------------+ | | +----------------+ 1 row in set (0.00 sec)
查看uuid
UUID一共五部分:
- 前三部分是根据时间戳生成的
- 第四部分是保留时间的唯一性
- 第五部分是根据网卡生成的
mysql> select uuid(); +--------------------------------------+ | uuid() | +--------------------------------------+ | ac8a84eb-aacc-11ea-b4fc-000c295e277d | +--------------------------------------+ 1 row in set (0.00 sec)
相关推荐
CoderToy 2020-11-16
wangshuangbao 2020-11-13
苏康申 2020-11-13
要啥自行车一把梭 2020-11-12
vitasfly 2020-11-12
emmm00 2020-11-17
王艺强 2020-11-17
aydh 2020-11-12
世樹 2020-11-11
zry 2020-11-11
URML 2020-11-11
spurity 2020-11-10
yifangs 2020-10-13
Andrea0 2020-09-18
Ida 2020-09-16
ltd00 2020-09-12
tufeiax 2020-09-03
xjd0 2020-09-10
greatboylc 2020-09-10