简体   繁体   English

转义大于 Athena 中的列名

[英]Escape Greater Than for Column Name in Athena

I would like to name the output of my columns with "<" greater or less than symbols.我想用“<”大于或小于符号来命名我的列的 output。

Select worker_name as '<<Worker>>'
from employ

But I am getting但我越来越

 mismatched input ''<<Worker>>''. Expecting: <identifier>

I have tried escaping with "`" and "ESCAPE" but no luck.我用“`”和“ESCAPE”尝试过 escaping 但没有成功。 Is there and way to do this?有没有办法做到这一点?

Using Double Quotes instead of Single Quotes seems to be the correct way使用双引号而不是单引号似乎是正确的方法

Select worker_name as "<<Worker>>"
from employ

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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