Display each DISTINCT Field Value only once using loop

前端 未结 3 1053
夕颜
夕颜 2021-01-26 04:36
SELECT listTitle, listLength, listCmt, listDt, mBCFName, mBCLName, moAmt, moDtOff
FROM User U, Listing L, Merchant M, MerchantOffer MO
WHERE U.uID = L.uID
and L.listID =         


        
3条回答
  •  攒了一身酷
    2021-01-26 05:34

    On the basis that every field is the same (listTitle, listLength, listCmt, listDt, mBCFName, mBCLName, moAmt, moDtOff) the change is easiest in the SQL

    SELECT DISTINCT listTitle, listLength, listCmt, listDt, mBCFName, mBCLName, moAmt, moDtOff
    

    If it's not the same, then how would the code be able to decide which New Balance 574 Men's Shoes to display?

提交回复
热议问题