SQL FunctionsContext FunctionsDATABASEOn this pageDATABASEReturns the name of the currently selected database. If no database is selected, then this function returns default.SyntaxDATABASE()ExamplesSELECT DATABASE();┌────────────┐│ database() │├────────────┤│ default │└────────────┘