mirror of https://github.com/citusdata/citus.git
Add order by multi_mx_modifications
parent
a159bd9aed
commit
b3af5b2cc4
|
@ -32,11 +32,11 @@ SELECT COUNT(*) FROM limit_orders_mx WHERE id = 32745;
|
||||||
(1 row)
|
(1 row)
|
||||||
|
|
||||||
-- and see all the inserted rows
|
-- and see all the inserted rows
|
||||||
SELECT * FROM limit_orders_mx;
|
SELECT * FROM limit_orders_mx ORDER BY 1;
|
||||||
id | symbol | bidder_id | placed_at | kind | limit_price
|
id | symbol | bidder_id | placed_at | kind | limit_price
|
||||||
-------+--------+-----------+--------------------------+------+-------------
|
-------+--------+-----------+--------------------------+------+-------------
|
||||||
32744 | AAPL | 9580 | Tue Oct 19 10:23:54 2004 | buy | 20.69
|
|
||||||
32743 | AAPL | 9580 | Tue Oct 19 10:23:54 2004 | buy | 20.69
|
32743 | AAPL | 9580 | Tue Oct 19 10:23:54 2004 | buy | 20.69
|
||||||
|
32744 | AAPL | 9580 | Tue Oct 19 10:23:54 2004 | buy | 20.69
|
||||||
32745 | AAPL | 9580 | Tue Oct 19 10:23:54 2004 | buy | 20.69
|
32745 | AAPL | 9580 | Tue Oct 19 10:23:54 2004 | buy | 20.69
|
||||||
(3 rows)
|
(3 rows)
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@ INSERT INTO limit_orders_mx VALUES (32745, 'AAPL', 9580, '2004-10-19 10:23:54',
|
||||||
SELECT COUNT(*) FROM limit_orders_mx WHERE id = 32745;
|
SELECT COUNT(*) FROM limit_orders_mx WHERE id = 32745;
|
||||||
|
|
||||||
-- and see all the inserted rows
|
-- and see all the inserted rows
|
||||||
SELECT * FROM limit_orders_mx;
|
SELECT * FROM limit_orders_mx ORDER BY 1;
|
||||||
|
|
||||||
-- basic single-row INSERT with RETURNING
|
-- basic single-row INSERT with RETURNING
|
||||||
INSERT INTO limit_orders_mx VALUES (32746, 'AAPL', 9580, '2004-10-19 10:23:54', 'buy', 20.69) RETURNING *;
|
INSERT INTO limit_orders_mx VALUES (32746, 'AAPL', 9580, '2004-10-19 10:23:54', 'buy', 20.69) RETURNING *;
|
||||||
|
|
Loading…
Reference in New Issue