📅  最后修改于: 2022-03-11 15:02:09.390000             🧑  作者: Mango
SELECT CASE WHEN count(distinct col1)= count(col1)
THEN 'column values are unique' ELSE 'column values are NOT unique' END
FROM tbl_name;