mysqlincorrectsqltimevalue
问题:将excel表格导入到mysql中,字段格式都是VARCHAR(255),现在需要计算两个
日期时间差值。excel表格如图所示:
mysql查询的目的是:
预付:验证时间-下单时间超过3小时,或者验证时间为空
现付:验证时间与下单时间之差在3小时以内的为现付
目的:按城市分类,计算每个城市的预付、现付的数量。
下图是自己编写的sql代码,一直报错[Err] 1292 - Truncated incorrect time value: ''
代码如图:
求大神解答,急用
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn