restlin / yii2-query-insert
Class for Yii2 PHP framework helps to generate insert sql query from other tables.
Package info
github.com/Restlin/yii2-query-insert
Type:yii2-extension
pkg:composer/restlin/yii2-query-insert
1.0.1
2018-02-12 15:18 UTC
Requires
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2026-03-21 18:56:39 UTC
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']);