Rss & SiteMap

Foxtable(狐表) http://www.foxtable.com

新一代数据库软件,完美融合Access、Foxpro、Excel、vb.net之优势,人人都能掌握的快速软件开发工具!
共3 条记录, 每页显示 10 条, 页签: [1]
[浏览完整版]

标题:[求助]同样的SQL语句,在查询表里可以执行,但在代码中不执行

1楼
2900819580 发表于:2025/1/14 16:45:00

sel ect v.FNumber, v.FModel, v.FName, v.CDate, v.MDate, v.Qty ,v.NDayS,Case when V.Ndays >= 365 then '1年以上' when V.Ndays >= 30 and V.Ndays < 365 then '1' when V.Ndays > 0 then '1' when V.Ndays IS null then '呆滞' end as Lx From (SEL ECT FNumber, FModel, FName, CDate, MDate, Qty, DATEDIFF(DAY, MDate, CDate) AS NDayS FROM (SEL ECT w.FItemID, w.FNumber, w.FModel, w.FName, GETDATE() AS CDate, (SEL ECT MAX(FDate) AS Expr1 FROM (SELE CT a.FItemID, b.FDate, a.FInterID FROM {ICStockBillEntry} AS a LEFT OUTER JOIN {ICStockBill} AS b ON a.FInterID = b.FInterID) AS c WHERE (FItemID = w.FItemID)) AS MDate,(SE LECT TOP (1) FQty FROM {ICInventory} AS K WHERE (FItemID = w.FItemID)) AS Qty FROM {t_ICItemCore} AS w ) AS J) as V order by v.FNumber


语句内容如上,不知那里出问题了。


此主题相关图片如下:微信截图_202501141637551.png
按此在新窗口浏览图片


此主题相关图片如下:微信截图_20250114163834.png
按此在新窗口浏览图片

此主题相关图片如下:微信截图_20250114164044.png
按此在新窗口浏览图片


2楼
有点蓝 发表于:2025/1/14 16:48:00
绑定到窗口表控件,不要绑定主表
3楼
刘效功天津 发表于:2025/1/15 9:22:00
在咱们软件开发平台老师的帮助引领下   渐渐锤炼出好多高手,祝贺咱们得开发平台越来越辉煌,感谢咱们得老师,有点蓝,是他给咱们解决了不少问题,提供了许多解决问题的方法,再次感谢有点蓝老师,祝老师一切都好
共3 条记录, 每页显示 10 条, 页签: [1]

Copyright © 2000 - 2018 foxtable.com Tel: 4000-810-820 粤ICP备11091905号

Powered By Dvbbs Version 8.3.0
Processed in .02734 s, 2 queries.