Select COUNT(*) from Table_one where timestamp LIKE '%2020-03-04%' AND speed_type = 'SPEED';
当我通过 Spring Boot 框架实现它时,这个查询显示错误,所以我在 postgresql 上检查了它,但它仍然显示错误。
错误是这样的: -
ERROR: operator does not exist: date ~~ unknown
LINE 1: Select COUNT(*) from table_one where timestamp LIKE '2020-0...
^
HINT: No operator matches the given name and argument types. You might need to add explicit type casts.
SQL state: 42883
Character: 49