("SELECT * FROM (
select id, title, report_date, report_file, company, 'company' as report_type from rs_company_report
union
select id, title, report_date, report_file, company, 'sector' as report_type from rs_sector_report
union
select id, title, report_date, report_file, company, 'morning' as report_type from rs_morning_report) as company_reports where company LIKE '%1%' order by title ");
如何将此查询转换为zend tablegateway格式。
答案 0 :(得分:0)
到目前为止,Zend2似乎没有提供任何UNION支持。
http://framework.zend.com/manual/2.1/en/modules/zend.db.sql.html#zend-db-sql-select
答案 1 :(得分:0)
现在有了combine()
但它不适用于这两个:
两个以上的
ORDER