简体   繁体   English

在MonetDB中,可以通过SQL命令获取数据库名称吗?

[英]In MonetDB, can I obtain the database name via SQL commands?

MonetDB是否通过SQL查询使某些系统表可以使用当前的数据库名称(即,不是DBMS主机名,而是您要连接的数据库或表集)?

Yes, the env() table-producing function also has the db name, in my case 'acs'. 是的,env()表生成函数也具有数据库名称,在我的情况下为“ acs”。

sql>select value from env() where name='gdk_dbname';
+-------+
| value |
+=======+
| acs   |
+-------+

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Python停顿的sql(MonetDB)命令 - sql (MonetDB) commands from Python stalling 如何使用来访问SQL Server数据库。 通过设置位置命名 - How can I access a SQL Server database with . in name via set-location 我可以在 monetdb 中检索最后一个插入 id 吗? - Can I retrieve the last insert id in monetdb? 在系统中,通过“ ExecuteReader”执行的多个SQL命令我只能操作SQL语句 - Multiple SQL commands executed via “ExecuteReader” in a system I can only manipulate SQL statements 在MonetDB中,如何获取整数的日期? - In MonetDB, how can I get the date as an integer? 有人知道如何使用SQL获取peachtree的数据库架构吗? (无所不在) - Anyone know how can I obtain the database schema of peachtree with SQL? (pervasive) 我可以在 PowerShell 中的对象上使用 SQL 命令(例如 join),而不涉及任何 SQL 服务器/数据库吗? - Can I use SQL commands (such as join) on objects in powershell, without any SQL server/database involved? 在MonetDB中启动数据库...失败 - Starting database … failed in MonetDB 我可以在数据库中创建一个与 SQL USER 同名的用户吗? - Can i create a user in a database with the same name as SQL USER? PHP / SQL-如何获取数据库中表的名称? - PHP/SQL - How can I get the name of tables in my database?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM