从数据类型nvarchar转换为numeric出错~请问该如何修改呢? sql
selecttransidas日记帐分录凭证号,u_amtper,u_docnum,caseu_doctypewhen'opor'then'采购订单'when'ordr'...
select transid as 日记帐分录凭证号 ,u_amtper,u_docnum,
case u_doctype
when 'opor' then '采购订单'
when 'ordr' then '销售订单'
end as '单据类型'
from jdt1
where cast(U_docnum as numeric(19,6))<>0
order by u_docnum 展开
case u_doctype
when 'opor' then '采购订单'
when 'ordr' then '销售订单'
end as '单据类型'
from jdt1
where cast(U_docnum as numeric(19,6))<>0
order by u_docnum 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询