数据库查询sys_guid(): select sys_guid();
使用:
insert into user (id, username) values (sys_guid(),‘刘德华’);
本文介绍如何在数据库中使用sys_guid()函数生成唯一标识符,并演示了如何将其用于INSERT语句中,以自动为新记录分配一个全局唯一的ID。
数据库查询sys_guid(): select sys_guid();
使用:
insert into user (id, username) values (sys_guid(),‘刘德华’);

被折叠的 条评论
为什么被折叠?