我需要幫助我的查詢:需要幫助我的查詢
SELECT
P.ID,
P.CategoryID,
P.Name,
P.SupplierID,
p.UnitPrice,
p.UnitsInStock,
pp.PicturePath
FROM Products P JOIN ProductPhoto PP ON p.ID=PP.ProductID WHERE P.CategoryID='2';
該查詢給了我2分的結果,但它必須給我個結果,因爲有其categoryID='2'
而且我已經檢查了4個數據從該查詢並有4個數據,其categoryID='2'
select * from Products;
感謝übluefeet它的工作 –