PostgreSQL DML Operations: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(→INSERT) |
||
Line 3: | Line 3: | ||
=<TT>INSERT</TT>= | =<TT>INSERT</TT>= | ||
{{Internal|SQL_INSERT#Overview|Standard SQL <tt>INSERT</tt>}} | |||
<syntaxhighlight lang='sql'> | <syntaxhighlight lang='sql'> | ||
INSERT INTO TEST ("ID", "NAME") VALUES (10, 'Bob') | INSERT INTO TEST ("ID", "NAME") VALUES (10, 'Bob') | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=<TT>UPDATE</TT>= | =<TT>UPDATE</TT>= | ||
<syntaxhighlight lang='sql'> | <syntaxhighlight lang='sql'> |
Revision as of 22:44, 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