简体   繁体   中英

How to convert Athena timestamp to string

I am using following code:

select date_col::TEXT from table1;

Error:

identifiers must not contain ':' (service: amazonathena; status code: 400; error code: invalidrequestexception; request id: 0445a8ab-7bbc-4db2-bb6d-4d8b48bebd1f; proxy: null)

Can you try select cast(date_col as varchar) from table1;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM