distinct函数返回单个列的唯一元素。如果要根据多列筛选重复行,请用isDuplicated函数
select * from table where isDuplicated([col1, col2], FIRST)=0
在查询数据时,希望根据关键列将重复的数据过滤仅保留一行。
select distinct(col1,col2) from table ===================================== The function [distinct] expects 1 argument(s), but the actual number of arguments is: 2 select distinct([col1,col2]) from table ===================================== The argument for 'distinct' must be a typed vector
distinct函数返回单个列的唯一元素。如果要根据多列筛选重复行,请用isDuplicated函数
select * from table where isDuplicated([col1, col2], FIRST)=0