restlin/yii2-query-insert Class for Yii2 PHP framework helps to generate insert sql query from other tables.

extensiondbquerybuilder

yii2-query-insert

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']);

Statistics

Downloads
GitHub Stars
GitHub Forks

Releases

Comments



1.0.1 is the latest of 2 releases



GPL-3.0-or-later license
Stats
0 github stars & 0 github forks
0 downloads in the last day
0 downloads in the last 30 days
29 total downloads