SELECT RAWTOHEX(SYS_GUID()) AS GUID_STRING FROM DUAL;
-- 插入資料時,使用RAWTOHEX轉換SYS_GUID()生成的GUID
INSERT INTO my_table (id, data) VALUES (RAWTOHEX(SYS_GUID()), 'Some data');
SELECT RAWTOHEX(SYS_GUID()) AS GUID_STRING FROM DUAL;
-- 插入資料時,使用RAWTOHEX轉換SYS_GUID()生成的GUID
INSERT INTO my_table (id, data) VALUES (RAWTOHEX(SYS_GUID()), 'Some data');