By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
| documentdb | postgres |
|---|---|
| 0.116.0 | PostgreSQL 18.6 (Ubuntu 18.6-1.pgdg24.04+2) on x86_64-pc-linux-gnu, compiled by gcc (Ubuntu 13.3.0-6ubuntu2~24.04.1) 13.3.0, 64-bit |
SELECT 1
{ acknowledged: true, insertedIds: { '0': 1, '1': 2 } }
[ { _id: 1, customer: 'Ada', total: 42 } ]
SET
| document |
|---|
| { "_id" : { "$numberInt" : "1" }, "customer" : "Ada", "total" : { "$numberInt" : "42" } } |
| { "_id" : { "$numberInt" : "2" }, "customer" : "Grace", "total" : { "$numberDouble" : "17.5" } } |
SELECT 2