当前位置:首页 » 编程语言 » 金蝶转sql

金蝶转sql

发布时间: 2024-03-07 23:18:49

‘壹’ 安装金蝶KIS提示执行sql语句出错,请问如何解决

建议你检查环境是否符合要求,另外可以和客服联系
祝好运,望采纳

‘贰’ 复制金蝶软件,sql server显示已经打开无法复制怎么办

停止mssqlserver服务。
1、首先打开金蝶软件,找到开始。
2、点击运行,找到cmd,netstopmssqlserver,点击停止mssqlserver服务。
3、点击开始复制即可。
4、综上是复制金蝶软件,sqlserver显示已经打开无法复制的解决步骤。

‘叁’ 请问如何能获取金蝶K3的【报表分析】的SQL语句

Select t4.FItemID,Sum(t4.FQty) As FQty
Into #ICInventory
From ICInventory t4 Inner Join t_ICItem t1 On t1.FItemID=t4.FItemID
Inner Join t_Stock t3 On t4.FStockID=t3.FItemID
Where 1 = 1
Group By t4.FItemID
Insert Into #ICInventory Select t4.FItemID,Sum(0) As FQty
From ICInventory t4 Inner Join t_ICItem t1 On t1.FItemID=t4.FItemID
Inner Join t_Stock t3 On t4.FStockID=t3.FItemID
Where 1 = 1
and t4.FItemID Not In (Select Distinct(FItemID) From #ICInventory)
Group By t4.FItemID
Insert Into #ICInventory Select t1.FItemID,0 From T_ICItem t1
Where t1.FItemID Not In (Select Distinct(FItemID) From ICInventory)
Select t5.FName As FClassName, t2.FShortNumber,t2.FNumber,t2.FName,t2.FModel,t2.FQtyDecimal,
t3.FName As FBUUnitName,ROUND(t1.FQty, t2.FQtyDecimal) As FActBUUnitQty,t2.FSecInv As FSecInvBUUnitQty,
FBUUnitDiff=ROUND(t1.FQty-t2.FSecInv, t2.FQtyDecimal),
t4.FName As FCUUnitName,ROUND(t1.FQty/t4.FCoeffiCient, t2.FQtyDecimal) As FActCUUnitQty,ROUND(t2.FSecInv/t4.FCoeffiCient, t2.FQtyDecimal) As FSecInvCUUnitQty,
FCUUnitDiff=ROUND(t1.FQty/t4.FCoeffiCient-t2.FSecInv/t4.FCoeffiCient,t2.FQtyDecimal),
FStatus=(Case When ROUND(t1.FQty ,t2.FQtyDecimal) - t2.FSecInv < 0 Then '库存不足' Else '' End),FSumSort=0
Into #temp
From #ICInventory t1 Inner Join t_ICItem t2 On t1.FItemID=t2.FItemID
Inner Join t_MeasureUnit t3 On t2.FUnitID=t3.FMeasureUnitID
Inner Join t_MeasureUnit t4 On t2.FStoreUnitID=t4.FMeasureUnitID
Left Join t_Item t5 On t2.FParentID=t5.FItemID
where (t1.FQty/t4.FCoeffiCient-t2.FSecInv/t4.FCoeffiCient)<0 order by t2.FNumber IF EXISTS(Select * From #TEMP)
Insert Into #Temp
Select '','','','合计','',4,
'',Sum(FActBUUnitQty),Sum(FSecInvBUUnitQty),Sum(FBUUnitDiff),
'',Sum(FActCUUnitQty),Sum(FSecInvCUUnitQty),Sum(FCUUnitDiff),
'',101
From #temp
Select * From #temp Where FBUUnitDiff<0 Order By FSumSort,FSecInvBUUnitQty ASC
Drop Table #icinventory
Drop Table #temp

热点内容
androidstudio同步 发布:2024-11-29 04:37:50 浏览:114
python用什么 发布:2024-11-29 04:37:40 浏览:792
w10系统如何搭建ftp服务器 发布:2024-11-29 04:37:36 浏览:789
python模拟访问网页 发布:2024-11-29 04:33:21 浏览:227
除了安卓还有什么可以下载的 发布:2024-11-29 04:05:44 浏览:381
coreldraw用户临时文件夹 发布:2024-11-29 04:05:44 浏览:740
如何设置ipad文件夹 发布:2024-11-29 03:59:16 浏览:141
如何给u盘文件夹加密 发布:2024-11-29 03:48:37 浏览:693
传奇打元宝脚本 发布:2024-11-29 03:39:52 浏览:843
如何装linux系统 发布:2024-11-29 03:38:17 浏览:183