Skip to main content

Showing tag results for Database Tables

Posts

0 comments 0 reactions

How to Create a Schema in PostgreSQL

Jagdish Kumawat

Create a schema in PostgreSQL, a folder for tables inside a database, and create and query a table in it.

  • Database
  • PostgreSQL
0 comments 0 reactions

How to Create a Table in pgAdmin 4

Jagdish Kumawat

Create a PostgreSQL table in pgAdmin 4’s Create Table dialog, with a screenshot of every step.

  • Database
  • PostgreSQL
0 comments 0 reactions

How to Drop a Table in PostgreSQL

Jagdish Kumawat

Delete a PostgreSQL table with DROP TABLE, and see what IF EXISTS and CASCADE do.

  • Database
  • PostgreSQL
0 comments 0 reactions

How to Rename a Table in PostgreSQL

Jagdish Kumawat

Give a PostgreSQL table a new name with ALTER TABLE RENAME TO, keeping all of its rows.

  • Database
  • PostgreSQL
0 comments 0 reactions

How to Change a Column’s Data Type in PostgreSQL

Jagdish Kumawat

Change a PostgreSQL column’s type with ALTER TABLE, and add USING when PostgreSQL can’t convert the values by itself.

  • Database
  • PostgreSQL
0 comments 0 reactions

How to Drop a Column in PostgreSQL

Jagdish Kumawat

Remove a column and all its values from a PostgreSQL table with ALTER TABLE DROP COLUMN.

  • Database
  • PostgreSQL
0 comments 0 reactions

How to Rename a Column in PostgreSQL

Jagdish Kumawat

Rename a column in a PostgreSQL table with ALTER TABLE, keeping its type and every value in it.

  • Database
  • PostgreSQL
0 comments 0 reactions

How to Add a Column to a Table in PostgreSQL

Jagdish Kumawat

Add a column to an existing PostgreSQL table with ALTER TABLE, with or without a default for the rows already there.

  • Database
  • PostgreSQL
0 comments 0 reactions

How to Describe a Table in PostgreSQL

Jagdish Kumawat

See every column of a PostgreSQL table, with its type, whether it can be empty and its default, using psql’s describe command.

  • Database
  • PostgreSQL
0 comments 0 reactions

How to List Tables in PostgreSQL

Jagdish Kumawat

List the tables in a PostgreSQL database with one psql command, see their sizes, and use a SQL query in tools without it.

  • Database
  • PostgreSQL