立即将时间戳转换为字符串 MySQL?

Cast timestamp to String in presto MySQL?

如何将时间戳列转换为字符串以在 Presto MySQL 中执行通配符操作?

我使用了以下命令: CAST(time_at as char(100)) LIKE '2019-10-31%'

出现错误: Presto error: TYPE_MISMATCH: line 120:8: Cannot cast timestamp to char(100)

使用VARCHAR:

select CAST(timestamp '2019-10-31 01:00' as VARCHAR) LIKE '2019-10-31%'