Grokking SQL for Tech Interviews
Ask Author
Back to course home

0% completed

Vote For New Content
CREATE
On this page

CREATE

In SQL, the CREATE statement is used to create various database objects, i.e., tables, indexes, or the database itself.

Here's a detailed explanation of the CREATE statement and the objects you can create.

  1. CREATE Database

We can create a new database with a CREATE statement. Let's see how.

CREATE DATABASE database_name;

This simple command will create a database. You can specify any name for your database.

  1. CREATE Table

A table is a fundamental database object that stores and organizes data in a structured format

.....

.....

.....

Like the course? Get enrolled and start learning!

On this page