select distinct on(字段) * from 表
举例:select distinct on(USER_ID ) * from table-name
本文介绍了如何在SQL查询中使用DISTINCTON关键字从table-name表中选择唯一的USER_ID字段,以获取每个用户的唯一标识。
select distinct on(字段) * from 表
举例:select distinct on(USER_ID ) * from table-name
1402
2614

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