适用于 Yii2 / Laravel等框架的IIS Url Rewrite web.config 的Url Rewrite <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> 2020-04-17 645 阅读
Yii 2.0: 显示原始Sql查询 这里有一个快速的提示转储查询的SQL。 $query = new Books::find()->where('author=2'); echo $query->createCommand()->sql; 或者获取包含所有参数的SQL请尝试: $query->createCommand()->getR 2020-04-17 268 阅读
适用于Yii2的千万级数据秒分页 首先SQL原型如下 SELECT t1.* FROM item t1, (SELECT id FROM item WHERE id>100 LIMIT 10000,20 ) t2 WHERE t1.id=t2.id; SQL子查询数据并分页,只取主键,然后在获取 该表所有数据,在数据量非常大的时候实 2020-04-17 277 阅读