原sql为
1 | SELECT |
结果
1 | 2018-08-20 16 |
修改后改为
1 | SELECT |
结果
1 | 2018-08-20 16 |
参考地址
https://stackoverflow.com/questions/16636433/mysql-count-to-return-0-if-no-records-found
个人记录
1 | SELECT |
1 | 2018-08-20 16 |
1 | SELECT |
1 | 2018-08-20 16 |
https://stackoverflow.com/questions/16636433/mysql-count-to-return-0-if-no-records-found