How to add an integer unique id to query results - __efficiently__?

后端 未结 4 404
面向向阳花
面向向阳花 2021-01-25 17:08

Given a query, select * from ... (that might be part of CTAS statement)

The goal is to add an additional column, ID, where ID is a

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-25 17:54

    Check this out for a globally unique id service https://github.com/spinaki/distributed-unique-id It has a docker image too which you can test quickly.

提交回复
热议问题