Bit datatype in MS SQL
hi,
im using ms sql 2005..
bit datatype define 0/1..
how define bit other 0/1, example want define male/female, red/green etc..is possible? or there other datatype more suitable define gender(male/female)? or need use varchar?
tq..
a bit value may 0, 1 or null. typically, 0 , 1 translate to boolean in programming appropriate data type when need true/false or yes/no values. possible use bit gender not intuitive value might indicate male or female. instead use "gender_code char(1)" check constrant allowing m or f.
dan guzman, sql server mvp, http://weblogs.sqlteam.com/dang/
SQL Server > SQL Server Data Access
Comments
Post a Comment