Answers for "check if a column is unique sql"

0

check if a column is unique sql

SELECT CASE WHEN count(distinct col1)= count(col1)
THEN 'column values are unique' ELSE 'column values are NOT unique' END
FROM tbl_name;
Posted by: Guest on October-07-2021

Code answers related to "check if a column is unique sql"

Code answers related to "Javascript"

Browse Popular Code Answers by Language