Duplicate columns with inner Join

后端 未结 2 982
旧时难觅i
旧时难觅i 2020-12-19 01:34
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 02:01

    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;
    

提交回复
热议问题