需要将 bigint 类型的列转换为 uuid 类型的列,或将 uuid 类型的列转换为 bigint 类型的列。示例代码如下:
将 bigint 类型的列转换为 uuid 类型的列:
SELECT * FROM table1 INNER JOIN users ON CAST(table1.column1 AS uuid) = users.column1;
将 uuid 类型的列转换为 bigint 类型的列:
SELECT * FROM table1 INNER JOIN users ON CAST(table1.column1 AS bigint) = users.column1;