php - How use UNION and Zend DB if number of columns different

one text

Solution:

It's work

$select2 = $db->select()->from(['t2' => 'table2'], ['col1', 'col2', 'col3' => new Zend_Db_Expr("null"), 'col4' => new Zend_Db_Expr('null')]);

Source