database - How to assign values to store gender information? -


i'm creating application stores data users. wondering mapping of gender appropriate:

male - false; female - true 

or

female - false; male - true 

is there standard this?

i have seen bit (sql server) type being used genders, mentioned. places i've worked used char(1) column that, because thought someday might have store genders other male , female (i.e.: androginous/assexual, transexual (both male or female), hermaphrodite, unknown etc.). , knows? in case, both solutions work. i'm inclined bit solution may have better performance if scalability issue, though should matter huge databases.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -