NULL 值如何转换成空字符串
SELECT a.CUSTOM_MASTER,a.I_E_PORT,a.MANUAL_NO,a.CONTR_NO,convert(char(10),a.I_E_DATE,112) as I_E_DATE,
a.TRADE_CO,a.TRADE_NAME,a.TRAF_MODE,a.OWNER_CODE,a.OWNER_NAME,a.TRAF_NAME,
a.AGENT_CODE,a.AGENT_NAME,a.VOYAGE_NO,a.BILL_NO,a.TRADE_MODE,a.CUT_MODE,a.PAYMENT_MARK,a.LICENSE_NO,a.TRADE_COUNTRY,cast(cast(a.DISTINATE_PORT as int) as char(10))DISTINATE_PORT,a.DISTRICT_CODE,a.APPR_NO,a.TRANS_MODE,
a.FEE_MARK,a.FEE_RATE,a.FEE_CURR,a.INSUR_MARK,a.INSUR_RATE/10000 INSUR_RATE,a.INSUR_CURR,a.OTHER_MARK,a.OTHER_RATE,a.OTHER_CURR,
a.PACK_NO,a.WRAP_TYPE,a.GROSS_WT,a.NET_WT
from DEC_I_HEAD a where a.TRANS_MODE IN ('3','5','6')
and left(a.CUSTOM_MASTER,2) in ('52','53','67')
其中a.FEE_MARK,a.FEE_RATE,a.FEE_CURR,a.INSUR_MARK,a.INSUR_RATE/10000 INSUR_RATE,a.INSUR_CURR,a.OTHER_MARK,a.OTHER_RATE,a.OTHER_CURR 这些栏位返回的是NULL值,如在查询的时候就把它何改成空字符串,请给出完整的SQL语句谢谢;
------解决方案--------------------a.FEE_MARK这个改成:isnull(a.FEE_MARK,'')
其他的你需要替换的都这样改