当前位置: 首页 > 科技观察

MongoDB实现增删改查

时间:2023-03-11 20:25:11 科技观察

1、添加insert向数据库中插入一条记录,传入集合db..insert()db.students.insert({name:"唐僧",年龄:60,性别:"M"})