日期:2014-05-16 浏览次数:20595 次
select
ENTRY_ID AS 海关编号,D_DATE AS 申报日期,TRADE_MODE AS 监管方式,GROSS_WT AS [毛重(KG)],NET_WT AS [净重(KG)],G_NO AS 序号,
G_NAME AS 商品名称,QTY_1 AS 成交数量,DECL_TOTAL AS 成交总价,TRADE_CURR AS 币制,
replace(replace(I_E_FLAG,'I','JBCE'),'E','JBYE') + CONTR_ITEM + EXG_VERSION as 版本号
FROM A,B
right(1000+CONTR_ITEM ,3)+right(10000+EXG_VERSION ,4)