Classic unions

From: Date: Sun, 15 May 2005 02:06:33 +0000
Subject: Classic unions
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-19222@lists.php.net to get a copy of this message
Hello, I would like to know if the DB_DataObject supports to create querys with classic unions, as this below: SELECT tipos_processos.NOME AS 'ID_TIPO_PROCESSO', clientes.NOME AS 'ID_CLIENTE', STATUS, usuarios.username AS 'USUARIO_CRIADOR' FROM processos, usuarios, tipos_processos, clientes WHERE processos.ID_TIPO_PROCESSO=tipos_processos.ID AND processos.ID_CLIENTE=clientes.ID AND processos.USUARIO_CRIADOR=usuarios.USERNAME In this case, the method joinAdd not cause the same effect. I arrived to try to mount thus: $do->joinAdd(DB_DataObject::factory("tipos_processos")); $do->joinAdd(DB_DataObject::factory("clientes")); $do->joinAdd(DB_DataObject::factory("usuarios")); $do->selectAdd("tipos_processos.NOME AS 'ID_TIPO_PROCESSO'"); $do->selectAdd("clientes.NOME AS 'ID_CLIENTE'"); $do->selectAdd("usuarios.username AS 'USUARIO_CRIADOR'"); Thanks! Adriano

« previous php.pear.general (#19222) next »