CONNECT BY的标准替代品?

编程入门 行业动态 更新时间:2024-10-25 09:29:28
本文介绍了CONNECT BY的标准替代品?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我正在尝试转换一些Oracle SQL查询以在理论上与任何SQL数据库一起使用.一些查询本质上是分层的,是使用CONNECT BY编写的.

I'm trying to convert some Oracle SQL queries to work with (in theory) any SQL database. Some of the queries are hierarchical in nature and are written using CONNECT BY.

是否有标准的SQL替代Oracle的START WITH ... CONNECT BY语法?还是我应该遵循一些建议的过程来转换分层查询?

Is there a standard SQL alternative to Oracle's START WITH...CONNECT BY syntax? Or is there some recommended process I should follow to convert the hierarchical queries?

推荐答案

在Oracle 11gR2中,它们支持通用表表达式中的递归(大多数Oracle人将其称为子查询因子,即WITH子句).由于这是ANSI的处理方式,因此应该更加可移植.

In Oracle 11gR2 they support recursion in Common Table Expressions (what most Oracle people know as sub-querying factoring, i.e. the WITH clause). As this is the ANSI way of doing things it ought to be more portable.

Tom Kyte在 11月9日的Oracle杂志上.

Tom Kyte writes about Recursive Subquery Factoring in the November 09 edition of Oracle magazine.

更多推荐

CONNECT BY的标准替代品?

本文发布于:2023-11-15 17:26:24,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1596483.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:替代品   标准   CONNECT

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!