private function _oracleSequenceExists($name)
    {
        $escape = Driver::$escape_char;
        $sql    = "select count(sequence_name) as $escape"."CNT"."$escape from user_sequences where sequence_name='$name' or sequence_name='".strtolower($name)."' or sequence_name='".strtoupper($name)."'";
        $stmt   = self::query($sql);
        $rst    = $stmt->fetch(\PDO::FETCH_ASSOC);
        $rtn    = intval($rst["CNT"]) > 0;
        self::closeCursor($stmt);
        return $rtn;
    }
private function _oracleSequenceExists($name)
    {
        $escape = Driver::$escape_char;
        $sql    = "select count(sequence_name) as $escape"."CNT"."$escape from user_sequences where sequence_name='$name' or sequence_name='".strtolower($name)."' or sequence_name='".strtoupper($name)."'";
        $stmt   = self::query($sql);
        $rst    = $stmt->fetch(\PDO::FETCH_ASSOC);
        $rtn    = intval($rst["CNT"]) > 0;
        self::closeCursor($stmt);
        return $rtn;
    }
private function _oracleSequenceExists ( $ name ) { $ escape = Driver :: $ escape_char ; $ sql = "select count(sequence_name) as $escape" . "CNT" . "$escape from user_sequences where sequence_name='$name' or sequence_name='" . strtolower ( $ name ) . "' or sequence_name='" . strtoupper ( $ name ) . "'" ; $ stmt = self :: query ( $ sql ) ; $ rst = $ stmt -> fetch ( \ PDO :: FETCH_ASSOC ) ; $ rtn = intval ( $ rst [ "CNT" ] ) > 0 ; self :: closeCursor ( $ stmt ) ; return $ rtn ; }
Check if an Oracle sequence exists

@param string $name sequence name

@return exists or not
Check if an Oracle sequence exists