问个ibatis的查询配置文件条件怎么写

qlyy840116 2009-07-24 08:42:43
select bassto ,count(bassto) from
(select distinct id,bassto from so where begintime>=#begintime# and endtime <=#endtime#) as tocx
group by bassto

sql语句如上,但是在(select distinct id,bassto from so where begintime>=#begintime# and endtime <=#endtime#)
中的where子句中还有些动态的查询条件不知道怎么去添加,数据库是DB2,请有经验的人给个例子,谢谢了
...全文
76 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
blue_sky0915 2009-07-29
  • 打赏
  • 举报
回复
动态查询使用ibatis的<dynamic> </dynamic>实现,具体怎么用去google查一下

81,091

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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