Introduction
The VALUES clause lets you quickly create small sets of data right inside your query without needing a table.
VALUES (value1, value2, ...), (value1, value2, ...), ...VALUES (1, 'apple'), (2, 'banana'), (3, 'cherry');
SELECT * FROM (VALUES (10, 'red'), (20, 'blue')) AS colors(id, name);
INSERT INTO fruits (id, name) VALUES (4, 'date'), (5, 'elderberry');
SELECT * FROM (VALUES (101, 'John'), (102, 'Jane'), (103, 'Joe')) AS people(id, name);
VALUES clause do in PostgreSQL?id and name using VALUES?SELECT * FROM (VALUES (1, 'Red'), (2, 'Blue')) AS colors(id, name);
SELECT * FROM VALUES (1, 'A'), (2, 'B') AS t(id, name);
product_id, name, and price using VALUES. Which query correctly creates this and selects products priced over 10?Pass the test and this pattern moves unknown