当前位置:网站首页>MySQL date [plus sign / +] condition filtering problem
MySQL date [plus sign / +] condition filtering problem
2022-07-25 20:13:00 【Xiaodaoxian 97】
Today, I'm revising a SQL I found a problem about the time format when I was in school , primary SQL as follows ( It has been simplified )
SELECT COUNT(*)
FROM im_first_statistics
WHERE prj_code IN('yxjt3311')
AND created_at BETWEEN '2022-07-20+00:00:00' AND '2022-07-20+23:59:59'
SQL There's no problem running , But the result of implementation is different from expectation .
Write a date comparison SQL, The results are as follows

Wondering if it could be MySQL Compare by string , When compared to + Greater than There will be no follow-up . Of course, this is an irregular way of writing , It's better not to write like this .
边栏推荐
- Recommendations on how to install plug-ins and baby plug-ins in idea
- Array of sword finger offer question bank summary (I) (C language version)
- The query data returned by the print database is null or the default value. Does not match the value returned by the database
- 统信UOS下配置安装cocos2dx开发环境
- UNET and mask RCNN
- Introduction and construction of consul Registration Center
- 【高等数学】【4】不定积分
- JVM(二十三) -- JVM运行时参数
- Technology cloud report: more than zero trust, the wild hope of Parra's "Digital Security Cloud strategy"
- Can you tell me whether mindspore supports torchvision Model directly uses the pre trained network, such as vgg16
猜你喜欢

How to get started quickly in software testing
EZDML reverse engineering import database analysis practical operation tutorial

如何保证定制滑环质量

【高等数学】【5】定积分及应用

4everland storage node portal network design

Google pixel 6A off screen fingerprint scanner has major security vulnerabilities
![[today in history] July 8: PostgreSQL release; SUSE acquires the largest service provider of k8s; Activision Blizzard merger](/img/14/f2b68dbe4e6a9b8d89ed9ff38f5e11.png)
[today in history] July 8: PostgreSQL release; SUSE acquires the largest service provider of k8s; Activision Blizzard merger

「分享」DevExpress ASP.NET v22.1最新版本系统环境配置要求
![[mindspore] [read graph data] cannot read mindrecord format graph data](/img/2a/6da73178993f3d0f84c1f6ada17884.png)
[mindspore] [read graph data] cannot read mindrecord format graph data

PMP practice once a day | don't get lost in the exam -7.25
随机推荐
Stochastic gradient descent method, Newton method, impulse method, adagrad, rmsprop and Adam optimization process and understanding
Jmeter——接口测试
Shopping guide for high-end flagship projectors: dangbei X3 pro and dangbei F5 are more immersive!
JS作用域与作用域链
tga文件格式(波形声音文件格式)
移动web布局方法
【高等数学】【5】定积分及应用
Mindspore1.1.1 source code compilation and installation -- errors in the core compilation stage
Deeplobv1 and V2
C # add multi line and multi column text watermark in word
分享 25 个有用的 JS 单行代码
当AI邂逅生命健康,华为云为他们搭建三座桥
JVM(二十三) -- JVM运行时参数
Redis source code -ziplist
PMP采用最新考纲,这里有【敏捷项目管理】
What is cluster analysis? Categories of cluster analysis methods [easy to understand]
How does tiktok break zero?
[today in history] July 2: BitTorrent came out; The commercial system linspire was acquired; Sony deploys Playstation now
RF、GBDT、XGboost特征选择方法「建议收藏」
[today in history] July 3: ergonomic standards act; The birth of pioneers in the field of consumer electronics; Ubisoft releases uplay