SHOW DATABASE
or SHOW DB
SHOW {DATABASE | DB}
The show database
(or show db
) command displays details about the current database.The ODS version, shown in the following examples, is only displayed from Firebird version 2.0 onwards, and other options depend on the type of connection and the Firebird version.
SQL> show database; Database: employee Owner: SYSDBA PAGE_SIZE 8192 Number of DB pages allocated = 346 Number of DB pages used = 319 Number of DB pages free = 27 Sweep interval = 20000 Forced Writes are OFF Transaction - oldest = 236 Transaction - oldest active = 237 Transaction - oldest snapshot = 237 Transaction - Next = 244 ODS = 13.1 Database not encrypted Embedded connection Creation date: Jan 11, 2024 12:08:41 Replica mode: NONE Default Character set: NONE Publication: Disabled
No parameters, such as a specific database name, are required and if supplied, will be ignored.The details displayed will always be for the current database.
SQL> show database testing_db; Database: employee Owner: SYSDBA PAGE_SIZE 8192 ... Publication: Disabled
You will note from the above that the details displayed are still for the employee database.