dyrnq commented on issue #24103: URL: https://github.com/apache/shardingsphere/issues/24103#issuecomment-1809469920
> I think this is caused by your usage. > > Have you tried connecting to MySQL directly? The `datetime` precise default is `0`. So setting the milliseconds to `999` didn't worked. https://dev.mysql.com/doc/refman/5.7/en/date-and-time-type-syntax.html > > <img alt="image" width="568" src="https://user-images.githubusercontent.com/20503072/218360470-76330364-a3c0-41da-9528-f93cd48b42b7.png"> @TeslaCN I think this is not the same, when tb_user.sub_date has datetime(0), the flowing select result are same ```bash select * from tb_user where sub_date between '2023-05-10 00:00:00.0' and '2023-05-10 23:59:59.999'; select * from tb_user where sub_date between '2023-05-10 00:00:00.0' and '2023-05-10 23:59:59'; ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
