restlin / yii2-query-insert
Class for Yii2 PHP framework helps to generate insert sql query from other tables.
Installs: 29
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2025-01-21 16:32:09 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']);