Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 SQL Server 上使用 presto 对包含特殊字符的表进行选择。
例如:select * from myconnecter.[XXX, s_a_$item ledger entry];
我的表名是 [XXX, s_a_$item ledger entry],我有这个错误:失败:第 1:28 行:不匹配的输入“。” 期待 {, ',', 'ADD', 'AS', '
我已经尝试过使用 \" 或 '' 或删除括号的不同解决方案......不知道......
Presto 遵循 SQL 标准,使用双引号:SELECT * FROM myconnecter."[XXX, s_a_$item ledger entry]"
SELECT * FROM myconnecter."[XXX, s_a_$item ledger entry]"