mongodb的基类 1 <?php 2 3 namespace BI\Service\MongoDB; 4 5 use MongoDB\Driver\BulkWrite; 6 use MongoDB\Driver\Exception\Exception; 7 use MongoDB\Driver\Manager; 8 use MongoDB\Driver\Query; 9 use MongoDB\Driver\WriteConcern; 10 use MongoDB\Driver\WriteR…
创建数据表: create table tt1( id int, name varchar(20), age int,sex boolean ); insert into tt1 values(1,"zhang",25,0); insert into tt1 values(2,"wang",25,1); insert into tt1(id,name,age,sex) values(3,"li",28,1); insert into tt1(id…