Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is the name IsFemale inappropriate for a database column?

Just browsing our db schema and found a field named 'IsFemale'

Is the name good, or is it kinda laughable?

like image 532
boingboing9999 Avatar asked Apr 08 '09 20:04

boingboing9999


1 Answers

You should stick with the ISO standard if at all possible.

ISO/IEC 5218 Information technology — Codes for the representation of human sexes is an international standard that defines a representation of human sexes through a language-neutral single-digit code. ...

The four codes specified in ISO/IEC 5218 are:

  • 0 = not known,
  • 1 = male,
  • 2 = female,
  • 9 = not applicable.

The standard specifies that its use may be referred to by the designator "SEX".

like image 147
JP Alioto Avatar answered Oct 06 '22 12:10

JP Alioto