restlin/yii2-query-insert
Composer 安装命令:
composer require restlin/yii2-query-insert
包简介
Class for Yii2 PHP framework helps to generate insert sql query from other tables.
README 文档
README
Class for Yii2 PHP framework helps to generate insert sql query from other tables.
This class helps to create query as below:
insert into rights_cache(id,login,type,date_in) select id,login,type,now() from rights where date_in>date_trunc('day',now());
Example usage:
$query = new QueryInsert; $query->select(['login','docid']) ->from($tblTemp) ->where(['in','docid' , $docids]); $query->insert(DA::tableName(),['login','docid']);
统计信息
- 总下载量: 31
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2016-09-28