select T1_id id, T1_money [money], T1_Money_Type Money_Type from talbe1
union all
select T2_id,    T2_money,     T2_Money_Type from table2
union all
select T3_id,    T3_money,     T3_Money_Type from table3

解决方案 »

  1.   

    SELECT T1_id id, T1_money [money], T1_Money_Type Money_Type FROM talbe1
    UNION
    SELECT T2_id,T2_money,T2_Money_Type FROM table2
    UNION
    SELECT T3_id,T3_money,T3_Money_Type FROM table3
      

  2.   

    select T1_id ad id, T1_money as [money], T1_Money_Type  as Money_Type from talbe1
    union all
    select T2_id,    T2_money,     T2_Money_Type from table2
    union all
    select T3_id,    T3_money,     T3_Money_Type from table3
      

  3.   

    select T1_id id, T1_money [money], T1_Money_Type Money_Type from talbe1
    union all
    select T2_id,    T2_money,     T2_Money_Type from table2
    union all
    select T3_id,    T3_money,     T3_Money_Type from table3
      

  4.   

    select T1_id id, T1_money [money], T1_Money_Type Money_Type from talbe1
    union all
    select T2_id id,    T2_money [money],     T2_Money_Type from table2
    union all
    select T3_id id,    T3_money [money],     T3_Money_Type from table3
    order by [money]
      

  5.   

    select T1_id id, T1_money [money], T1_Money_Type Money_Type from talbe1
    union all
    select T2_id id,    T2_money [money],     T2_Money_Type Money_Type from table2
    union all
    select T3_id id,    T3_money [money],     T3_Money_Type Money_Type from table3
    order by [money]
      

  6.   

    SELECT T1_id id, T1_money [money], T1_Money_Type Money_Type FROM talbe1
    UNION
    SELECT T2_id,T2_money,T2_Money_Type FROM table2
    UNION
    SELECT T3_id,T3_money,T3_Money_Type FROM table3
      

  7.   

    使用联合查询
    select T1_id as id,   T1_money as [money],  T1_Money_Type as moeny_type from table1
    union
    select T2_id as id,   T2_money as [money],  T2_Money_Type as moeny_type from table2
    union
    select T3_id as id,   T3_money as [money],  T3_Money_Type as moeny_type from table3
      

  8.   

    select T1_id ad id, T1_money as [money], T1_Money_Type  as Money_Type from talbe1
    union all
    select T2_id,    T2_money,     T2_Money_Type from table2
    union all
    select T3_id,    T3_money,     T3_Money_Type from table3