Hi Donald,
Did you try db:name()? See our documentation for more information [1].
Christian
[1] http://docs.basex.org/wiki/Database_Module
Am 14.07.2017 8:12 vorm. schrieb "donaldjohn" donaldjohn@qq.com:
Hi, How could I get the current database name in xquery? I need extract the database input path and then concate it with the relative XML path, I want to get the current opened database name rather than specify it. How could I archive this?