我想在ssp2简单类中使用下面的SQL查询
select * from table1 UNION ALL select * from table2我试过在下面查询ssp::simple class,但它不起作用。
$table ='';
$joinQuery = ' from table1 UNION ALL table2';
return Ssp::simple($_POST, $this->sql_details, $table, $primaryKey, $columns,
$joinQuery, $filterQuery, null, null, null);注意:我使用的是Xampp 5.6.24 (MariaDB)
发布于 2018-05-16 09:37:13
替换您的joinQuery,而不是$joinQuery =‘from table1 UNION ALL table2 2’;
$joinQuery = ' from (SELECT * from `table1` ';
$joinQuery .= ' UNION ALL';
$joinQuery .= ' SELECT * from `table2` ) temp';https://stackoverflow.com/questions/50366030
复制相似问题