>the value of this column will either be 1 or 2, so I'm assuming "INT" length will be 1.)
there you are wrong. int will take more that this.
Now it you really are sure to have 2 values only, you might think about using the BIT datatype, which will use 1bit (however 1byte when less than 8 bit fields are defined in the table)
Otherwise, tinyint is also available, using only 1/2 of INT
Main Topics
Browse All Topics





by: angelIIIPosted on 2005-07-15 at 10:52:59ID: 14453343
alter tabel MyTable add AvailabilityState Int NOT NULL default (1)