简体   繁体   English

oracle collections和临时表有什么区别?

[英]What is the difference between oracle collections and temporary tables?

What are the key differences between plsql collections and temporary tables. plsql collections 和临时表之间的主要区别是什么。 Also where exactly are collections stored in oracle database. collections 存储在 oracle 数据库中的确切位置。

Temporary tables are tables ;临时表是 they contain data (during transaction or session, depending on how you create them).它们包含数据(在事务或 session 期间,取决于您如何创建它们)。 Their definition remains in the database (unless you drop it, of course).它们的定义保留在数据库中(当然,除非您删除它)。

Collections can exist Collections 可以存在

  • on PL/SQL level (associative arrays) (so, in RAM) while that PL/SQL procedure is being executed or在执行 PL/SQL 过程时,在 PL/SQL 级别(关联数组)(因此,在 RAM 中)或
  • at schema level (varrays and nested tables) (so they are stored in the database and can be referenced by any SQL statements)在模式级别(变量和嵌套表)(因此它们存储在数据库中,并且可以被任何 SQL 语句引用)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM