PostgreSQL DML Operations: Difference between revisions
Jump to navigation
Jump to search
(→DELETE) |
(→SELECT) |
||
Line 21: | Line 21: | ||
=<TT>SELECT</TT>= | =<TT>SELECT</TT>= | ||
{{Internal|SQL_SELECT#Overview|Standard SQL <tt>SELECT</tt>}} | |||
<syntaxhighlight lang='sql'> | <syntaxhighlight lang='sql'> | ||
SELECT "ID", "NAME" FROM TEST | SELECT "ID", "NAME" FROM TEST | ||
</syntaxhighlight> | </syntaxhighlight> |
Revision as of 22:45, 22 May 2024
Internal
INSERT
INSERT INTO TEST ("ID", "NAME") VALUES (10, 'Bob')
UPDATE
UPDATE TEST SET "ID"=50 WHERE "NAME"='Bob'
DELETE
DELETE FROM TEST WHERE "ID"=10
SELECT
SELECT "ID", "NAME" FROM TEST