PostgreSQL Tutorial for Beginners 6 - PostgreSQL CREATE TABLE
In this post we will learn How to Create a CREATE TABLE in PostgreSQL (PostgreSQL Create Database). psql is the standard PostgreSQL application to work with databases
Common psql Meta-commands:
\a: toggle output format (aligned/unaligned)
\c name: connect to a database name
\copy table: copy a table to/from a file
\d : list all tables (display)
\d table: show information about a table
\e: edit the query buffer
\g: execute the query buffer (go)
\h command: display help on command
\i name: read name into query buffer (input)
List all databases:
# \l
Create a new database:
# CREATE DATABASE MYDB;
Use a database:
# \connect MYDB;
Run database schema:
# \i ;
List tables and sequences in your current db:
# \d
Delete database:
# DROP DATABASE MYDB
Quit the cli:
# \q
a distribution ...
#ProgrammingKnowledge #PostgreSQL_CREATE_TABLE #Learning #PostgreSQL #Programming #Database #Clauses #Commands #Functions #Administration
20191120
QC61CKXgxkU
1 view
108
21
2 weeks ago 00:14:00 9
[Anton Putra] SQLite vs PostgreSQL Performance
4 weeks ago 00:04:29 1
[Fireship] SQLite and its weird new fork “libSQL”
4 weeks ago 01:04:07 84
Flutter Full Stack Tutorial – Spotify Clone w/ MVVM Architecture, Python, FastAPI, Riverpod - Part 4
4 weeks ago 03:00:01 48
Flutter Full Stack Tutorial – Spotify Clone w/ MVVM Architecture, Python, FastAPI, Riverpod - Part 3
4 weeks ago 02:59:56 31
Flutter Full Stack Tutorial – Spotify Clone w/ MVVM Architecture, Python, FastAPI, Riverpod - Part 2
4 weeks ago 03:00:04 40
Flutter Full Stack Tutorial – Spotify Clone w/ MVVM Architecture, Python, FastAPI, Riverpod - Part 1
2 months ago 00:23:32 22
How To Install PostgreSQL on Ubuntu LTS (Linux) (2024)