📜  检查列是否是唯一的 sql - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:09.390000             🧑  作者: Mango

代码示例1
SELECT CASE WHEN count(distinct col1)= count(col1)
THEN 'column values are unique' ELSE 'column values are NOT unique' END
FROM tbl_name;