sql高手进,sql两列交替出现的值写入一列中,并编号

2025-04-28 01:36:02
推荐回答(1个)
回答1:

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