Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // select * from customers where _id = 'ak'
- db.customers.find({
- _id: "ak"
- });
- // select * from customers where name = 'Aldino Kemal'
- db.customers.find({
- name: "Aldino Kemal"
- });
- // select * from products where price = 2000
- db.products.find({
- price: 2000
- });
- // select * from orders where items.product_id = 1
- db.orders.find({
- "items.product_id": 1
- });
Advertisement
Add Comment
Please, Sign In to add comment