PostgreSQL DML Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 1: Line 1:
=Internal=
=Internal=
* [[PostgreSQL Operations]]
* [[PostgreSQL Operations]]
* [[SQL#SQL_Data_Statements_(DML)|SQL Data Statements (DML)]]


=<TT>INSERT</TT>=
=<TT>INSERT</TT>=

Revision as of 22:47, 22 May 2024

Internal

INSERT

Standard SQL INSERT
INSERT INTO TEST ("ID", "NAME") VALUES (10, 'Bob')

UPDATE

Standard SQL UPDATE
UPDATE TEST SET "ID"=50 WHERE "NAME"='Bob'

DELETE

Standard SQL DELETE
DELETE FROM TEST WHERE "ID"=10

SELECT

Standard SQL SELECT
SELECT "ID", "NAME" FROM TEST