Bonjour,
Je travaille sur un projet PHP-ORACLE.
Le framework Zend 1.1 est utilisé pour l'accès aux données, le composant Zend_db plus précisement.
Cela fonctionne très bien mais je voudrais incorporer une requête du type :

select lib, level
where x = 1
start with ....
connect by prior ....

pour afficher une hiérarchie de libellé.
J'ai donc la fonction suivante

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
 
public function find_Libelle() {
      $select = $this->getTable()->getAdapter()->select()
        ->from('TABLE')
        ->where('TABLE.ID = ?', $this->ID)
        ->where(TABLE.ACTIF = 1 START WITH TABLE.ID_UP IS NULL CONNECT BY PRIOR TABLE.ID = TABLE.ID_UP');
	  return $select->query()->fetchAll();
    }
Or cela ne fonctionne pas. Le start with, connect by provoquent une erreur.
Quelqu'un pourrais-t'il m'aider ?
Merci