Oracle PL/SQL 的一个很好的参考
Oracle PL/SQL 的最佳参考资料是什么?我非常了解 SQL-92 和 MS-SQL 扩展,但现在我正在与 Oracle 合作,并且正在努力寻找 PL/SQL 语言的良好参考资料。
我正在寻找以下内容的参考:
- 变量循环
- 游标
- 包
- 临时
- 触发器
- 存储过程
- 表
非常感谢。
What are the best references for Oracle PL/SQL? I have an excellent knowlege of SQL-92 and of MS-SQL extensions, but now I'm working with Oracle and I'm struggling to find good references for the PL/SQL language.
I am looking for references for the following:
- Variable
- Loops
- Cursor
- Packages
- Trigger
- Stored Procedures
- Temporary Tables
Thanks so much.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(7)
正如 Klaus 所说,在线文档非常好。从2 天应用程序开发人员指南开始。如果您使用的是 11gR2,则需要阅读最新版本的 PL/SQL 语言参考。较新的 Oracle 版本已更新版本的文档。
但如果您想买一本书,那么 Steven Feuerstein 的 Oracle PL/SQL 编程 是那个。
As Klaus says the online documentation is pretty good. Start with the 2-Day Application Developer's Guide. If you're using 11gR2, you'll want to read the most recent version of the PL/SQL Language Reference. Newer Oracle releases have updated versions of the documents.
But if you want to buy a book, then Steven Feuerstein's Oracle PL/SQL Programming is the one.
另一项观察。您可以将临时表包含在 PL/SQL 功能列表中。这是因为您习惯了 T-SQL 的处理方式。在 Oracle 中,事情的处理方式有所不同。
在 Oracle 中,我们有全局临时表。这些是永久数据库对象,就像常规表一样,但它们的定义是为了临时保存数据 - 在事务或会话期间。全局临时表中的数据只能由填充它的会话查询。
重点是临时表在 SQL 中讨论参考,而不是 PL/SQL 手册。
One additional observation. You include temporary tables in a list of PL/SQL features. This is because you are used to the T-SQL way of doing things. In Oracle things are handled differently.
In Oracle we have global temporary tables. These are permanent database objects, like regular tables, but they are defined so that the data is held temporarily - either for the duration of a transaction or a session. The data in a global temporary table is only queryable by the session which populates it.
The point being that temporary tables are discussed in the SQL Reference, not the PL/SQL manual.
此参考非常好。
This reference is really good.
除了其他人提到的 PL/SQL 文档之外,Oracle Database Concepts Guide 是了解 Oracle 如何工作的一个很好的参考,包括包、触发器、表等的概述。我已经发布了 11.2 版本的链接,但您可以找到旧版本的文档此处。
In addition to PL/SQL documentation that others have mentioned, the Oracle Database Concepts Guide is a good reference for finding out how Oracle works, including an overview of package, triggers, tables etc. I have posted a link to the 11.2 version, but you can find the docs for older versions here.
我一直发现 网络技术 是很好的快速参考
I've always found Tech on the Net to be good quick reference
Java2s 有一个很好的参考教程。
以下是 Oracle 部分: http://www.java2s.com/Book/Oracle/CatalogOracle .htm
这里是 Oracle PL/SQL 参考目录,易于浏览:http ://www.java2s.com/Code/Oracle/CatalogOracle.htm
以下是 Oracle PL/SQL 教程部分:http://www.java2s.com/Tutorial/Oracle/CatalogOracle.htm
我有 OReilly 书籍,但不会发布我获得该链接以及 Oracle Student 工作簿的位置这是 Scribd 上的。
与 Oracle 参考资料和 tahiti oracle 一起,该网站对于初学者来说是一个很好的教程网站。 http://www.tutorialspoint.com/plsql/index.htm
Java2s has a good reference tutorial.
Here is the Oracle section: http://www.java2s.com/Book/Oracle/CatalogOracle.htm
Here is the Oracle PL/SQL reference catalog, easy to navigate: http://www.java2s.com/Code/Oracle/CatalogOracle.htm
Here is the Oracle PL/SQL tutorial section: http://www.java2s.com/Tutorial/Oracle/CatalogOracle.htm
I have the OReilly Book but won't post where I got that link along with Oracle Student workbook which is on Scribd.
And along with the Oracle references and tahiti oracle, this site was a good tutorial site for beginners. http://www.tutorialspoint.com/plsql/index.htm
添加要点到接受的答案:
来自 AskTom 的示例代码片段
打开 ref_cursor 为
选择 *
来自(您曾经放入 temp_1 的查询),
(您曾经放入 temp_2 的查询)
其中 join_conditions
在您的过程中。您会发现 Oracle 在涉及数十个(是的,超过 16 个)表的复杂查询方面表现得更好 — 没有任何问题。
Adding points to accepted answer:
Sample code snippet from AskTom
open ref_cursor for
select *
from ( query you used to put into temp_1 ),
( query you used to put into temp_2 )
where join_conditions
in your procedure. You'll find that Oracle is much better at complex queries involving dozens (yes more then 16) tables -- without any issues whatsoever.