Home:ALL Converter>Cast timestamp to String in presto MySQL?

Cast timestamp to String in presto MySQL?

Ask Time:2021-11-10T04:40:00         Author:coderWorld

Json Formatter

How can I cast a timestamp column to string to do wildcard operations in Presto MySQL?

I have used the following command: CAST(time_at as char(100)) LIKE '2019-10-31%'

Getting an error: Presto error: TYPE_MISMATCH: line 120:8: Cannot cast timestamp to char(100)

Author:coderWorld,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/69904785/cast-timestamp-to-string-in-presto-mysql
yy