문제

Does MonetDB make the current DB name (i.e. not the DBMS hostname, but the DB, or set of tables, that you connect to) available via SQL queries to some of the system table?

도움이 되었습니까?

해결책

Yes, the env() table-producing function also has the db name, in my case 'acs'.

sql>select value from env() where name='gdk_dbname';
+-------+
| value |
+=======+
| acs   |
+-------+
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top