Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个大型 Oracle 项目,其中有 150 多个表。大多数时候,我都有小型 SQL 查询,我在其中插入或检索数据列。我只想使用 PL/SQL 块来处理这些表。考虑到大多数时候我都会进行小型 SQL 查询,这是一个好方法吗?
SQL 和 PLSQL 都是不同的引擎。如果你用 PLSQL 做某事,PLSQL 和 SQL 引擎都会受到影响。这就是为什么它更喜欢尽可能使用 SQL 完成您的任务,因为它会快速高效。但是很多事情又取决于需求。