https://docs.snowflake.com/en/sql-reference/sql/alter-database.
"ALTER DATABASE [ IF EXISTS ] <name> RENAME TO <new_db_name>"
"ALTER DATABASE [ IF EXISTS ] <name> SWAP WITH <target_db_name>"
The question does not mention anything about the source database and shared (target) database. If shared database is "d1.r1" and there is about changing its name, only, it seems that the answer is D (like in the first syntax from above).
upvoted 1 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
37ceea2
3 weeks, 1 day ago