alex
alex

Reputation: 490163

Using the `set` datatype in MySQL

I just came across a requirement of labeling a user as 1 of 3 different roles. Normally I have used an id, but the roles don't really relate to each other at all.

I had a look at the set datatype, and I added the 3 different options.

Thanks

Upvotes: 2

Views: 592

Answers (1)

OMG Ponies
OMG Ponies

Reputation: 332541

They're roles - that's how they relate to one another.

Upvotes: 1

Related Questions