Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

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

I am trying to run the query in snowflake

show grants to user username

ex: show grants to user test_account

It works if I give username as test_account but if i change it to use something like eax@org.net.
It fails because of @ character.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

How can I make it evaluate @ character?

>Solution :

the same way as you created them, with double quotes:

create user "test@account";
show grants to user "test@account";
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading