摘要:
update tab1 a left join tab2 b on a.store_id=b.store_id set a.order_id=b.id where a.an<> 1 and a.an <> '' insert into tab1 (id,time) select id,time fr 阅读全文
摘要:
1.每个server块都相当于一个虚拟主机(解析站点),包含多个location(处理请求、配置) server { listen 80;//监听端口 server_name k2.com kh.com;//站点域名 index index.php index.html index.htm defa 阅读全文
摘要:
1.依赖注入,将类以参数的形式传入方法中, 相当于在方法中 new Store(); namespace app\api\controller;use model\ModelEntity as Store;class Api{ //依赖注入 Store,相当于在方式中已 $store = new S 阅读全文
摘要:
1.链式->count() 查询记录总数 select count(id) from ims_store ->group('name')->count() 分组后的记录总数 select count(*) from (select id from ims_store group by name) a 阅读全文