我有这样一个名为“天”SQL脚本帮助
Day 1 Day 2 Day 3 Day 4 Day 5 Day 6 Day 7
1 1 1 1 0 0 0
1 1 1 1 0 0 0
具有相应的细节的表格。其中1为'真'且0为假。
DaY 1 - sunday
day 2- monday
day 3 - tuesday
day 4- wednesday
day5 - thursday
day 6 - friday
dayy 7- saturday
1 - denotes there is work on the given day
0 - denotes there is no work on the given day.
给出的细节上面,我需要做列表映射 和需要生成这样的,在这里我需要得到的数据表只有那些具有标志1
1 Sunday
2 Monday
3 Tuesday
4 Wednesday
为第一条记录。
为什么'5星期四'? – 2010-09-15 11:44:38
什么是你的表的主键? – 2010-09-15 11:46:56
该表有Id,这是主键,不在表 – SRA 2010-09-15 12:12:05