Duplicate columns with inner Join

后端 未结 2 1012
忘掉有多难
忘掉有多难 2020-12-19 00:57
SELECT 
    dealing_record.*
    ,shares.*
    ,transaction_type.*
FROM 
    shares 
    INNER JOIN shares ON shares.share_ID = dealing_record.share_id
    INNER JOI         


        
2条回答
  •  离开以前
    2020-12-19 01:39

    Try to join shares with dealing_record, not shares again:

    select dealing_record.*,
           shares.*,
           transaction_type.*
    FROM shares inner join dealing_record on shares.share_ID = dealing_record.share_id
                inner join transaction_type on transaction_type.transaction_type_id=
    dealing_record.transaction_type_id;
    

提交回复
热议问题