如何使 sql 在 snowflake 的 show 命令中评估字符 @

How to make sql evaluate character @ in show command in snowflake

我正在尝试 运行 snowflake

中的查询
show grants to user username

例如:show grants to user test_account

如果我将用户名设为 test_account,它会起作用,但如果我将其更改为使用 eax@org.net. 由于@字符而失败。

如何让它计算@字符?

与您创建它们的方式相同,带双引号:

create user "test@account";
show grants to user "test@account";