php - combining results of two select objects Zend\Db\sql\sql -


I know the way to combine two selected letters will look like this:

  SELECT Include table A on a table A. In the table that comes from table A. [TableB] .ID = Table A. Select Owner Union Table AID., Table A. Include [Table C] by name [Table C] on right outer table A. tableAId = tableA.Id  

But how will it be if I am using SQL Object?

  $ sql = new SQL ($ Adapter); Select $ = $ sql-> Select (); Select $ - & gt; From (tableA); Select $ - & gt; Any help would be greatly appreciated.   

ZF2 has combine that acts as a union -

$ select1-> Coalition ($ select2);

I hope this helps someone.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -