I have a database table contains:
userid, username,months.
Is it possible store more than one number of months in a single field for one user. means that for example for user 1,name khan,months 1,2,3,4,5,6,7 or jan,feb,mar,ap,may,jun etc. is it possible????if yes then how please help me
Loading

Suthish NairRank #92 · 22.8K reputationPosted Jul 6, 2011, 12:27 PM EDT
Jaganathan BantheswaranRank #170 · 14.1K reputationPosted Jul 6, 2011, 3:09 AM EDT
Just make months column as type of varchar and store the months separated by comma.
While retrieving the months split it by comma and do the stuff.
Posted Jul 6, 2011, 3:15 AM EDT
saifullah khanRank #4,887 · 320 reputationPosted Jul 6, 2011, 3:24 AM EDT
Sam HobbsRank #107 · 20.5K reputationPosted Jul 6, 2011, 1:50 PM EDT
You also did not say if the multiple months consist of a single range; in other words, 1-7 (or jan-jul) for January through July. If a single range, then you could have a start month and an end month. If not a single range, then you could create 12 boolean fields and set them to true or false.