Guest User

Untitled

a guest
Aug 14th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. INSERT INTO Temp_Movie_Category(MovieID,categories,category_name)
  2. select DISTINCT temp_movie.MovieID, temp_movie.movie_categories,
  3. trim(regexp_substr(temp_movie.movie_categories, '[^|]+', 1, levels.column_value))
  4. from
  5. temp_movie,
  6. table(cast(multiset(select level from dual connect by level <= length (regexp_replace(temp_movie.movie_categories, '[^|]+')) + 1) as sys.OdciNumberList)) levels;
Add Comment
Please, Sign In to add comment