udtateer
udtateer

What's the best way to store gender in a MySQL table ?

is_male Boolean not null default 1;

6mo ago
SirLewisHamilton
SirLewisHamilton
IBM6mo

There are so many genders now ๐Ÿ’€ enum karke use karlo.

wayneroooooooney
wayneroooooooney

Enum hi best hai bhai ab toh

Just use strings bro, just standardize the data though before storing. Like donโ€™t end up having data like Male, MALE, male etc

Discover more
Curated from across