Run commands to define and use a database in your data warehouse (original) (raw)

Both Redshift Serverless data warehouses and Amazon Redshift provisoned data warehouses contain databases. After you have launched your data warehouse, you can manage most database actions using SQL commands. With few exceptions, the functionality and syntax of SQL is the same for all Amazon Redshift databases. For details of SQL commands available with Amazon Redshift, seeSQL commands in the Amazon Redshift Database Developer Guide.

When you create your data warehouse, in most scenarios, Amazon Redshift also creates the default dev database. After you connect to the dev database, you can create another database.

The following sections walk through common database tasks when working with Amazon Redshift databases. The tasks begin with creating a database and if you continue to the last task you can delete all the resources you create by dropping the database.

The examples in this section assume the following:

Topics

Connecting to Amazon Redshift data warehouses

To connect to Amazon Redshift clusters, from the Amazon Redshift console Clusters page, expand Connect to Amazon Redshift clusters and do one of the following:

To connect to Redshift Serverless data warehouse, from the Amazon Redshift console Serverless dashboard page, do one of the following: