这是我的 SQL:
-- Order information
SELECT ISNULL(p.PaymentAmt, 0) AS PaymentAmt, o.TaxAmt, o.PostAmount, o.OrderDate, o.PublicNotes, u.userid, PostAmount + TaxAmt AS Total, PostAmount - PaymentAmt AS Due
FROM Orders o
INNER JOIN Payment p ON p.OrderID = o.OrderID
INNER JOIN Users u ON o.EnteredBy = u.UserKey
Where o.OrderID = 5267
现在对于这个特定的 OrderID,它只返回 0 行只是列标题。有没有办法强制它为值返回 0 并为其余部分返回空字符串?