我有一個從我的asp.net頁面調用的存儲過程。 「RecordUpdated」字段返回TRUE或FALSE。我需要該列返回YES(如果爲true)或NO(如果爲false)在Select語句中修改SQL查詢
我該怎麼做?
SET @SQL = 'SELECT RecID, Vendor_Number, Vendor_Name, Invoice_Number, Item_Number, RecordAddDate, RecordUpdated FROM Vendor_Invoice_Log'
SET @SQL = @SQL + ' ORDER BY Item_Number, Vendor_Number
PRINT @SQL