nuh*_*003 0 sql distinct
我有一个表(Some_Table)有两列: AB ------------------- 1 test 2 test 3 test1 4 test1
我想返回B列的DISTINCT值,它是A列中的相关值(第一个是不同的集合),所以像这样:
AB ----------- 1测试 3 test1
什么是sql?
Mar*_*ker 7
select min(A),B from table group by B
归档时间:
16 年,5 月 前
查看次数:
1523 次
最近记录: