周一至周五 : 08:30 - 17:30 客服专员电话/微信:17301649370 QQ:2902102332
微信咨询

扫码微信咨询

关注公众号

关注微信公众号

电话: 021 5161 9370
返回顶部
E2032 错误问题求助
显示全部楼层 倒序浏览 发表日期 2017-01-02 09:50:51 3120次阅读 5次回复
关键字 ‘IN’附近有语法错误。这个怎么解决


公式不符合规范 可以点出错提示底部的详细,将您的公式贴出来这样好判断
SELECT T_218.F_2047 AS F_2312xFP,
SUM(T_218.F_2053) AS F_2316xFN
FROM  T_218  WHERE 1=1 AND  [T_218].[F_2054]  <IN (60,60,60,60,1,1,60,1,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,1,1,60,60,1,1,1,60,1,1,60,1,1,60,60,60,60,60,60,60,60,1,1,1,60,60,60,60,60,60,60,60,60,60,60,1,1,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,1,60,60,60,60,60,60,60,60,60,60,60,1,60,1,1,60,60,60,60,1,60,60,1,60,60,60,60,60,60,60,60,1,60,60,60,1,60,60,1,60,60,1,60,1,60,60,60,1,60,1,1,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,1,60,60,60,60,60,60,60,60,60,60,1,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,1,60,60,60,60,60,60,60,1,1,1,60,60,60,1,1,60,60,1,1,60,60,1,1,60,60,60,60,60,60,60,60,60,1,60,1,1,60,60,60,60,1,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,1,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,1,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,1,60,1,60,60,60,60,60,60,60,60,60,1,60,60,60,60,60,60,60,60,1,60,60,60,60,60,1,60,60,60,60,1,60,60,60,60,60,0,60,60,60,60,60,60,60,60,60,60,60,60,60)  GROUP BY [T_218].[F_2047]
< IN  明细表只能用属于不属于 IN 或 NOT IN 不能含有 < 等。
联系QQ:1327452797
yxw2111

2017-1-2 11:01:22

那我怎样才能取到查询表内小于30天的数呢?
admin

2017-1-2 11:11:14

AND 本报表字段  < 30

精彩评论5

公式不符合规范 可以点出错提示底部的详细,将您的公式贴出来这样好判断
SELECT T_218.F_2047 AS F_2312xFP,
SUM(T_218.F_2053) AS F_2316xFN
FROM  T_218  WHERE 1=1 AND  [T_218].[F_2054]  <IN (60,60,60,60,1,1,60,1,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,1,1,60,60,1,1,1,60,1,1,60,1,1,60,60,60,60,60,60,60,60,1,1,1,60,60,60,60,60,60,60,60,60,60,60,1,1,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,1,60,60,60,60,60,60,60,60,60,60,60,1,60,1,1,60,60,60,60,1,60,60,1,60,60,60,60,60,60,60,60,1,60,60,60,1,60,60,1,60,60,1,60,1,60,60,60,1,60,1,1,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,1,60,60,60,60,60,60,60,60,60,60,1,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,1,60,60,60,60,60,60,60,1,1,1,60,60,60,1,1,60,60,1,1,60,60,1,1,60,60,60,60,60,60,60,60,60,1,60,1,1,60,60,60,60,1,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,1,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,1,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,60,1,60,1,60,60,60,60,60,60,60,60,60,1,60,60,60,60,60,60,60,60,1,60,60,60,60,60,1,60,60,60,60,1,60,60,60,60,60,0,60,60,60,60,60,60,60,60,60,60,60,60,60)  GROUP BY [T_218].[F_2047]
< IN  明细表只能用属于不属于 IN 或 NOT IN 不能含有 < 等。
联系QQ:1327452797
yxw2111

2017-1-2 11:01:22

那我怎样才能取到查询表内小于30天的数呢?
admin

2017-1-2 11:11:14

AND 本报表字段  < 30
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则  允许回帖邮件提醒楼主

快表软件是国内较早研究表格类软件开发平台的团队之一,迄今已有十多年的行业经验.致力于为企事业单位提供实用可靠的数字化平台。
  • 微信公众号

  • 微信小商店

  • 微信客服

  • Powered by Discuz! X3.4 | Copyright © 2022-2024, XiRong Soft. | 快表软件
  • 沪ICP备13033196号 | 营业执照 |上海西戎软件科技有限公司|沪公网安备31011502002146号|沪ICP备13033196号 |