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.
我在学徒期间被问到以下问题:为什么查询如下:
FOR i in ( SELECT * FROM TABELKA) LOOP
效率不高?如何改变它以提高效率?
没有添加更多信息。
一次将所有数据收集到一个集合中。繁荣!一个查询,您无需循环即可获得所有信息。
SELECT * BULK COLLECT INTO a_collection_type_variable FROM a_table;