数据库插入:

use QCloud_WeApp_SDK\Mysql\Mysql as DB;
DB::insert("Users",['name' => 'liuxiaoyu','openid' => '321654']);

数据查询:

$res = DB::row('Users', ['*'], "name = 'rex'");
//name作为列名,不用加单引号

php中的array数组竟然真是这样构造的。。['name' => 'liuxiaoyu','openid' => '321654']