检测 table 在哪几个维度上是否有重复值 用 concat
sql吧
全部回复
仅看楼主
level 3
nana_wyn 楼主
select a.* from stg_entry_body a INNER JOIN
(select g_no,entry_id,concat(g_no,entry_id) as test_level ,count(*) as counts from stg_entry_body
group by test_level
having counts>1) b on a.g_no=b.g_no and a.entry_id=b.entry_id
2019年08月09日 09点08分 1
1