22.08.28 14:26 작성
·
213
0
H. Query 연습하기 강의 데이터를 "강의 보는 곳에 올려 놓겠다" 고 하셨는데, 거기가 어디인가요?
답변 1
0
저도 못찾아서 직접 적었는데, 필요하신분 사용하세요!
db.inventory.insertMany([
{item:"journal",status:"A",size:{h:14,w:21,uom:"cm"},instock:[{warehouse:"A",qty:5}]},
{item:"notebook",status:"A",size:{h:8.5,w:11,uom:"in"},instock:[{warehouse:"C",qty:5}]},
{item:"paper",status:"D",size:{h:8.5,w:11,uom:"in"},instock:[{warehouse:"A",qty:60}]},
{item:"planner",status:"D",size:{h:22.85,w:30,uom:"cm"},instock:[{warehouse:"B",qty:15}]},
{item:"postcard",status:"A",size:{h:10,w:15.25,uom:"cm"},instock:[{warehouse:"B",qty:15},{warehouse:"C",qty:35}]},
{item:"hat",status:"B",size:{h:12,w:12,uom:"cm"},instock:[{warehouse:"C",qty:20}]},
{item:"shovel",status:"B",size:{h:80,w:12,uom:"cm"},instock:[{warehouse:"C",qty:100}]},
{item:"broom",status:"C",size:{h:80,w:8,uom:"cm"},instock:[{warehouse:"A",qty:5},{warehouse:"C",qty:5}]}
])