SQL Select Return Default Value If Null

前端 未结 5 1391
伪装坚强ぢ
伪装坚强ぢ 2021-01-01 10:20

Database: MS SQL 2008

SELECT Listing.Title, Listing.MLS, Pictures.PictureTH, Pictures.Picture, Listing.ID 
FROM Listing INNER JOIN Pictures          


        
5条回答
  •  暖寄归人
    2021-01-01 11:21

    Landmine, what database are you using?

    If it's sql server 2005 or above or oracle, you can use the pivot command to achieve this.

提交回复
热议问题