Created
September 9, 2013 19:36
-
-
Save enriquemanuel/6500401 to your computer and use it in GitHub Desktop.
Micro store procedure to modify or alter the course content based on title
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
begin | |
for uu in ( | |
select pk1, title, main_data from course_contents where title like 'Title comes here%' | |
and | |
crsmain_pk1 in (select pk1 from course_main where course_id in | |
(<course_id>))) | |
loop | |
update course_contents | |
set main_data = '<p>paragraph or list or whatever you want to place here</p>' | |
where pk1 = uu.pk1; | |
--used for debug | |
--dbms_output.put_line('title' || uu.title); | |
end loop; | |
end; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment