从时间字段中删除秒数?

use*_*378 10 mysql sql database

如何删除秒并仅显示hh:mm

字段类型是time.例如:

SELECT opentime, closetime FROM hours

Result:
17:00:00  |  23:00:00
17:30:00  |  23:40:00
Run Code Online (Sandbox Code Playgroud)

Emi*_*röm 13

SELECT
  TIME_FORMAT(opentime, "%H:%i") as opentime,
  TIME_FORMAT(closetime, "%H:%i") as closetime
FROM hours;
Run Code Online (Sandbox Code Playgroud)