dev-resources.site
for different kinds of informations.
How to Create, Update, and Delete Database in Postgres
Published at
10/24/2024
Categories
Author
Md Enayetur Rahman
Categories
1 categories in total
open
- Open SQL Shell.
- Provide your username and password.
- Type the following command
CREATE DATABASE your_database_name;
- If the database is created successfully you will see the "CREATE DATABASE" message.
- Type the following command to see all the databases.
\l
- If you want to change the name of the database you can use the following command
ALTER DATABASE your_database_name RENAME TO new_database_name;
If the database name is changed successfully you will see an "ALTER DATABASE" message.
If you want to delete the database you can use the following command
DROP DATABASE your_database_name;
- If the database deletes successfully you will see a "DROP DATABASE" message.
Articles
12 articles in total
Pagination and Sorting with Prisma in TypeScript
read article
Prisma CRUD Operations Guide
read article
Organizing Find Operations in Prisma with TypeScript
read article
Understanding Prisma Models: A Beginner's Guide with Examples
read article
Getting Started with Prisma: A Comprehensive Guide
read article
Understanding PostgreSQL Data Types: Why They Matter and How to Use Them Effectively
read article
How to Create, Update, and Delete Database in Postgres
currently reading
How to create new user, and database in Postgres and grant and revoke permission
read article
How to install Postgres on your Windows machine
read article
The Foundation of Modern Computing: Transistors, Binary, and Bits
read article
State Management in React Using `useReducer`: A Comprehensive Guide
read article
Managing Global State in React with `useContext` and `useReducer`: A Todo App Example
read article
Featured ones: