1 個回答
- 最新
- 最多得票
- 最多評論
0
It's not possible because each database engine has a different implementation of the database concept, so it's a subject that varies from engine to engine.
What you can do is to use the ExecuteStatement RDS API command https://docs.aws.amazon.com/rdsdataservice/latest/APIReference/API_ExecuteStatement.html to run a select that queries the DB data dictionary for that specific engine for that RDS instance, and then you can get the database names.
It does not avoid to run the SQL, but it is a standardized way to get this info no matters the instance DB engine, as the result output has always the same structure.
已回答 3 年前
相關內容
- AWS 官方已更新 2 年前