<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://sqle.ru/index.php?action=history&amp;feed=atom&amp;title=Oracle_PL%2FSQL_Tutorial%2FCollections%2FMULTISET</id>
		<title>Oracle PL/SQL Tutorial/Collections/MULTISET - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://sqle.ru/index.php?action=history&amp;feed=atom&amp;title=Oracle_PL%2FSQL_Tutorial%2FCollections%2FMULTISET"/>
		<link rel="alternate" type="text/html" href="http://sqle.ru/index.php?title=Oracle_PL/SQL_Tutorial/Collections/MULTISET&amp;action=history"/>
		<updated>2026-04-07T03:07:24Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://sqle.ru/index.php?title=Oracle_PL/SQL_Tutorial/Collections/MULTISET&amp;diff=2933&amp;oldid=prev</id>
		<title> в 13:45, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://sqle.ru/index.php?title=Oracle_PL/SQL_Tutorial/Collections/MULTISET&amp;diff=2933&amp;oldid=prev"/>
				<updated>2010-05-26T13:45:46Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 13:45, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://sqle.ru/index.php?title=Oracle_PL/SQL_Tutorial/Collections/MULTISET&amp;diff=2934&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://sqle.ru/index.php?title=Oracle_PL/SQL_Tutorial/Collections/MULTISET&amp;diff=2934&amp;oldid=prev"/>
				<updated>2010-05-26T10:04:28Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== MULTISET Operator==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p&amp;gt;MULTISET operator gets a nested table whose elements are set to certain elements of two nested tables that are input to MULTISET. There are three MULTISET operators:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;MULTISET UNION  Returns a nested table whose elements are set to the elements of the two input nested tables.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;MULTISET INTERSECT  Returns a nested table whose elements are set to the elements that are common to the two input nested tables.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;MULTISET EXCEPT  Returns a nested table whose elements are in the first input nested table but not in the second.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;You may also use one of the following options with MULTISET:&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;ALL  Indicates that all applicable elements in the input nested tables are set in the returned nested table. ALL is the default.&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;p&amp;gt;DISTINCT  Indicates that only the distinct non-duplicate elements in the input nested tables are set in the returned nested table.&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;sql&amp;quot;&amp;gt;&lt;br /&gt;
SQL&amp;gt;&lt;br /&gt;
SQL&amp;gt; CREATE OR REPLACE PROCEDURE multiset_example AS&lt;br /&gt;
  2    TYPE nestedTableType IS TABLE OF VARCHAR2(10);&lt;br /&gt;
  3    myTable1 nestedTableType;&lt;br /&gt;
  4    myTable2 nestedTableType;&lt;br /&gt;
  5    myTable3 nestedTableType;&lt;br /&gt;
  6    count_var INTEGER;&lt;br /&gt;
  7  BEGIN&lt;br /&gt;
  8    myTable1 := nestedTableType(&amp;quot;F&amp;quot;, &amp;quot;G&amp;quot;, &amp;quot;S&amp;quot;);&lt;br /&gt;
  9    myTable2 := nestedTableType(&amp;quot;G&amp;quot;, &amp;quot;S&amp;quot;, &amp;quot;R&amp;quot;);&lt;br /&gt;
 10&lt;br /&gt;
 11    myTable3 := myTable1 MULTISET UNION myTable2;&lt;br /&gt;
 12    DBMS_OUTPUT.PUT(&amp;quot;UNION: &amp;quot;);&lt;br /&gt;
 13    FOR count_var IN 1..myTable3.COUNT LOOP&lt;br /&gt;
 14      DBMS_OUTPUT.PUT(myTable3(count_var) || &amp;quot; &amp;quot;);&lt;br /&gt;
 15    END LOOP;&lt;br /&gt;
 16    DBMS_OUTPUT.PUT_LINE(&amp;quot; &amp;quot;);&lt;br /&gt;
 17&lt;br /&gt;
 18    myTable3 := myTable1 MULTISET UNION DISTINCT myTable2;&lt;br /&gt;
 19    DBMS_OUTPUT.PUT(&amp;quot;UNION DISTINCT: &amp;quot;);&lt;br /&gt;
 20    FOR count_var IN 1..myTable3.COUNT LOOP&lt;br /&gt;
 21      DBMS_OUTPUT.PUT(myTable3(count_var) || &amp;quot; &amp;quot;);&lt;br /&gt;
 22    END LOOP;&lt;br /&gt;
 23    DBMS_OUTPUT.PUT_LINE(&amp;quot; &amp;quot;);&lt;br /&gt;
 24&lt;br /&gt;
 25    myTable3 := myTable1 MULTISET INTERSECT myTable2;&lt;br /&gt;
 26    DBMS_OUTPUT.PUT(&amp;quot;INTERSECT: &amp;quot;);&lt;br /&gt;
 27    FOR count_var IN 1..myTable3.COUNT LOOP&lt;br /&gt;
 28      DBMS_OUTPUT.PUT(myTable3(count_var) || &amp;quot; &amp;quot;);&lt;br /&gt;
 29    END LOOP;&lt;br /&gt;
 30    DBMS_OUTPUT.PUT_LINE(&amp;quot; &amp;quot;);&lt;br /&gt;
 31&lt;br /&gt;
 32    myTable3 := myTable1 MULTISET EXCEPT myTable2;&lt;br /&gt;
 33    DBMS_OUTPUT.PUT_LINE(&amp;quot;EXCEPT: &amp;quot;);&lt;br /&gt;
 34    FOR count_var IN 1..myTable3.COUNT LOOP&lt;br /&gt;
 35      DBMS_OUTPUT.PUT(myTable3(count_var) || &amp;quot; &amp;quot;);&lt;br /&gt;
 36    END LOOP;&lt;br /&gt;
 37  END multiset_example;&lt;br /&gt;
 38  /&lt;br /&gt;
Procedure created.&lt;br /&gt;
SQL&amp;gt; CALL multiset_example();&lt;br /&gt;
UNION: F G S G S R&lt;br /&gt;
UNION DISTINCT: F G S R&lt;br /&gt;
INTERSECT: G S&lt;br /&gt;
EXCEPT:&lt;br /&gt;
Call completed.&lt;br /&gt;
SQL&amp;gt;&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>