The MySQL Reference Manual advises:
Use a CREATE TABLE statement to specify the layout of your
table:
mysql> CREATE TABLE pet (name VARCHAR(20), owner
VARCHAR(20),
-> species VARCHAR(20), sex CHAR(1), birth DATE, death
DATE);
...
Several types of values can be chosen to represent sex in animal
records, such as 'm' and 'f', or perhaps 'male' and 'female'. It
is simplest to use the single characters 'm' and 'f'.
I will supplement that with this post about representing sex (gender) in people records. I have to consider the name, the possible values, the data type, and the constraints. It won't be simplest.
Should the column name be 'sex'?
First consider …
[Read more]