dbGetDatabaseName#
Purpose#
Returns the name of the database.
Format#
- db_name = dbGetDatabaseName(db_id)#
- Parameters:
db_id (scalar) – database connection index number.
- Returns:
db_name (string) – name of the database.
Examples#
// Add MySQL to the list of database connections
db_id = dbAddDatabase("MYSQL");
// Set the database name
dbSetDatabaseName(db_id, "inventory");
// Retrieve and print the database name
db_name = dbGetDatabaseName(db_id);
print db_name;