日期:2014-05-17 浏览次数:20483 次
SELECT
DebitAmount = (CASE CurrencyCode WHEN 'RMB' THEN NULL ELSE CreditAmount END),
CreditAmount = (CASE CurrencyCode WHEN 'RMB' THEN NULL ELSE DebitAmount END),
CurrencyCode
FROM tb
SELECT
CreditAmount = (CASE CurrencyCode WHEN 'RMB' THEN NULL ELSE CreditAmount END),
DebitAmount = (CASE CurrencyCode WHEN 'RMB' THEN NULL ELSE DebitAmount END),
CurrencyCode
FROM tb