1

Possible Duplicate:
Which MySQL Datatype to use for storing boolean values?

I need to record a yes or no, 1 or 0, it doesn't really matter. One for each day for a user. It is updated every day.

What structure should this table be?

Community
  • 1
  • 1

2 Answers2

2

Have a table that called whatever you need it to be, for example users_daily with the columns

id

user_id

yes (0 = no, 1 = yes) (tinyint),

timestamp

mikelbring
  • 1,492
  • 2
  • 13
  • 24
2

create a column of type BIT for the table

HaloWebMaster
  • 905
  • 6
  • 16