I want a way to quickly check the uniqueness of the content of all columns in a table (excluding the ID) before inserting a new row. A UNIQUE constraint involving all those columns would be pretty much what I need. However, without knowing too much about how relational databases work, I don't know if it's a good practice (in terms of efficiency, etc.) to define a constraint like that.
Another, more "manual" way would be to hash all the content of a row, save the hash into another column and define a unique index for that column. But I would expect that databases probably already have that functionality built-in.