Skip to main content

Showing tag results for SQL Syntax

Posts

0 comments 0 reactions

How to Change a Setting with SET in PostgreSQL

Jagdish Kumawat

SET changes a PostgreSQL setting for your own session only, and RESET puts it back, shown with the DateStyle setting.

  • Database
  • PostgreSQL
0 comments 0 reactions

How to Filter Rows with WHERE in PostgreSQL

Jagdish Kumawat

WHERE keeps only the rows that match a condition. A small table of cities shows how to filter, and the mistake to avoid.

  • Database
  • PostgreSQL
0 comments 0 reactions

How to Select Data from a Table in PostgreSQL

Jagdish Kumawat

Read rows from a PostgreSQL table with SELECT … FROM: every column with *, or only the columns you name.

  • Database
  • PostgreSQL
0 comments 0 reactions

How to Insert a Row in PostgreSQL

Jagdish Kumawat

Add a row to a PostgreSQL table with INSERT INTO, its columns and VALUES, with a small address book.

  • Database
  • PostgreSQL
0 comments 0 reactions

How to Create a Table in PostgreSQL

Jagdish Kumawat

Create a table in PostgreSQL with CREATE TABLE, and use IF NOT EXISTS when it may already be there.

  • Database
  • PostgreSQL
0 comments 0 reactions

How to Write a Date in PostgreSQL

Jagdish Kumawat

Write dates in PostgreSQL year first, as YYYY-MM-DD after the DATE key word, so every server reads them the same way.

  • Database
  • PostgreSQL
0 comments 0 reactions

How to Write a String in PostgreSQL

Jagdish Kumawat

Write text in PostgreSQL between single quotes, and type a single quote twice to put one inside the text.

  • Database
  • PostgreSQL