![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
SQL
静墨客
这个作者很懒,什么都没留下…
展开
-
Freesql 多个WithSql 查询分页数据翻倍
Freesql 多个WithSql 分页查询导致列表每页数据显示条数与当前设计条件不对应PageSize=10造成情况:PageSize*Count(WithSql)原创 2022-08-25 14:19:53 · 694 阅读 · 0 评论 -
【SQL】根据表中数据,以年月时间排序
select CONCAT(year(CreateTime),'-',month(CreateTime)) as datetime from Record group by year(CreateTime),month(CreateTime) order by year(CreateTime),month(CreateTime) asc得到自己想要数据SQL函数GetDate()当前系统日期 select GETDATE() --结果:2020-11-27 15:.原创 2020-11-27 15:47:27 · 7143 阅读 · 0 评论 -
【SQL】 关于join on and 查询
关于join on and 查询原创 2020-08-04 17:51:22 · 422 阅读 · 0 评论 -
【SQL】 时间比较大小
select * from Activities where EnterpriseNo='10000000'and DATEDIFF ([second], '2020-07-05 00:00:18', EffectiveStartTime)< 0 and DATEDIFF ([second], '2020-07-05 00:00:18', EffectiveEndTime)>0原创 2020-07-20 09:19:37 · 3176 阅读 · 0 评论