select classtrxh,case when valuechar is not null then valuechar when valuenum is not null then valuenum end as value-- 不知道 你index列怎么来的 自己写。。。from table_name