Top "Unique" questions

Refers to an element that is distinctly different from any other element in a collection.

Determining if an unordered vector<T> has all unique elements

Profiling my cpu-bound code has suggested I that spend a long time checking to see if a container contains completely …

c++ algorithm stl unique
How to merge subarray values and remove duplicates?

$arr[] = array('A','B'); $arr[] = array('C','B'); ... I need to get the merged result of all sub array of $…

php arrays unique flatten array-merge
How to define a "unique" constraint on a column of MySQL table in Ruby on Rails 3?

I have a simple MySQL table with one column: name. I would like to define a unique constraint on this …

mysql ruby-on-rails ruby-on-rails-3 unique unique-constraint
Unique constraint on multiple fields in Access 2003

I have not found any answer regarding my question, all unique constraint questions did not involve MS Access. The question …

sql unique ms-access-2003 constraints
How to generate a human friendly unique ID in Python?

How do I generate a unique ID value that can be easily passed on via phone or email, that can …

python random unique uniqueidentifier
why is php generating the same session ids everytime in test environment (WAMP)?

i've configured wamp in my system, and am doing the development cum testing in this local environment. i was working …

php unique wamp logout sessionid
CQRS Event Sourcing: Validate UserName uniqueness

Let's take a simple "Account Registration" example, here is the flow: User visit website Click "Register" button and fill form, …

domain-driven-design cqrs event-sourcing unique
Sqlite NULL and unique?

I noticed that I can have NULL values in columns that have the UNIQUE constraint: UNIQUE(col) Would that generate …

sql sqlite null unique unique-constraint
How to create unique CONSTRAINT to relationship by neo4j cypher?

How to create unique CONSTRAINT to relationship by neo4j cypher?

neo4j unique unique-constraint
PHP random URL names (short URL)

After using sites like JSFiddle I noticed that they auto generate a random and unique URL made up of various …

php url random unique short-url