Skip to main content

Database

This page provides a comprehensive overview of database operations in Databend, organized by functionality for easy reference.

Database Creation & Management

CommandDescription
CREATE DATABASECreates a new database
ALTER DATABASEModifies a database
DROP DATABASERemoves a database
USE DATABASESets the current working database
UNDROP DATABASERecovers a dropped database

Database Information

CommandDescription
SHOW DATABASESLists all databases
SHOW CREATE DATABASEShows the CREATE DATABASE statement for a database
SHOW DROP DATABASESLists dropped databases that can be recovered
note

Database operations are foundational for organizing your data in Databend. Make sure you have appropriate privileges before executing these commands.

Explore Databend Cloud for FREE
Low-cost
Fast Analytics
Easy Data Ingestion
Elastic Scaling
Try it today