请写sql语句从表一中提取数据,按表二的结构进行显示
帮我写下sql语句
SELECT ORDER_ID ,1 as ORDER_NO,ICD-10-1
as 'ICD-10' ,NAME1 as 'name' ,TYPE1 as 'type' from '病人诊断信息' union all
SELECT ORDER_ID ,2 as ORDER_NO,ICD-10-2
as 'ICD-10' ,NAME2 as 'name' ,TYPE2 as 'type' from '病人诊断信息'