Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

ORACLE multiset union distinct

DECLARE
   TYPE limbs_t IS TABLE OF limbs%ROWTYPE;

   l_limbs   limbs_t;
BEGIN
     SELECT l.nm, l.avg_len
       BULK COLLECT INTO l_limbs
       FROM limbs l
   ORDER BY l.nm;

   l_limbs := l_limbs MULTISET UNION l_limbs;
   DBMS_OUTPUT.put_line ('Lots of limbs! ' || l_limbs.COUNT);
END;
Source by livesql.oracle.com #
 
PREVIOUS NEXT
Tagged: #ORACLE #multiset #union #distinct
ADD COMMENT
Topic
Name
3+1 =