原表:
转换sql:
select attend_id,attend_name,'attend_day1' as attend_day, ka.attend_day1 as attend_type from krs_attendance ka
union all
select attend_id,attend_name,'attend_day2' as attend_day, ka.attend_day2 as attend_type from krs_attendance ka
union all
select attend_id,attend_name,'attend_day3' as attend_day, ka.attend_day3 as attend_type from krs_attendance ka