水晶报表 SQL表达式字段怎么用 在线等高人

jjcl521 2008-11-07 11:19:47
SQL语句在本地执行没问题,在水晶报表中就有问题了

老是提示 SQL表达式有错误,仍要保它吗?

我的sql语句

select count(cardtype) as count from ks_card_waitsell where status =1 group by cardtype,createtime


公式用法也需要求助


如果哪位大哥有例子给我发一个也行 要c#,web的例子

邮箱:jjcl521@163.com


...全文
629 13 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
13 条回复
切换为时间正序
请发表友善的回复…
发表回复
jjcl521 2008-11-10
  • 打赏
  • 举报
回复
[Quote=引用 12 楼 babyt 的回复:]
【SQL表达式字段】是SQL语句的一部分,但不能是一个完整的SQL语句

请参考
http://www.cnblogs.com/babyt/archive/2008/11/09/1329991.html
[/Quote]

谢谢 阿泰
阿泰 2008-11-09
  • 打赏
  • 举报
回复
【SQL表达式字段】是SQL语句的一部分,但不能是一个完整的SQL语句

请参考
http://www.cnblogs.com/babyt/archive/2008/11/09/1329991.html
阿泰 2008-11-09
  • 打赏
  • 举报
回复
标记一下,回头写个文~~
icefish2008 2008-11-07
  • 打赏
  • 举报
回复
把sql语句查询的数据放在dataset中就可以,报表中只需要配置数据库字段就可以了啊
jjcl521 2008-11-07
  • 打赏
  • 举报
回复
自己顶一个

吃饭去了
jjcl521 2008-11-07
  • 打赏
  • 举报
回复


select count(cardtype) as [count] from ks_card_waitsell where status =1 group by cardtype,createtime

--修改完的还是有错

select count(cardtype) as [count] from ks_card_waitsell where status ='1' group by cardtype,createtime

--也有错




我是informix数据库
分享大哥 2008-11-07
  • 打赏
  • 举报
回复
或者干脆将count 换为counts
分享大哥 2008-11-07
  • 打赏
  • 举报
回复

select count(cardtype) as count from ks_card_waitsell where status =1 group by cardtype,createtime


--修改为

select count(cardtype) as [count] from ks_card_waitsell where status =1 group by cardtype,createtime




你的count字段为sql关键字
andylili 2008-11-07
  • 打赏
  • 举报
回复
看上去好像没错呃!!

呵呵 我也是刚学的小菜鸟 帮你上你忙哦·~
SnowQuery 2008-11-07
  • 打赏
  • 举报
回复
select count(cardtype) as count from ks_card_waitsell where status ='1' group by cardtype,createtime
jjcl521 2008-11-07
  • 打赏
  • 举报
回复
错误信息



xsm545 2008-11-07
  • 打赏
  • 举报
回复
SQl 语法没错..很有可能是水晶报表用法不对..水晶报表什么错误提示,发出来看下
jjcl521 2008-11-07
  • 打赏
  • 举报
回复
自己继续顶

62,243

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧