Can these lines of sql statements be consolidated into one sql statement
(possibly using reg exps??)
BEGIN CODE
+++++++++++++++ +++++++++++++++ +++++++++++++++ +++++++++++++++ ++++++++++++
Update applications Set news_article = replace(news_ar ticle, '<FONT
face="Times New Roman" color=#000000 size=3>', '');
Update applications Set news_article = replace(news_ar ticle, '<P
class=MsoNormal style="MARGIN: 0cm 0cm 0pt">', '');
Update applications Set news_article = replace(news_ar ticle,
'<?xml:namespac e prefix = o ns = "urn:schema s-microsoft-com:office:offi ce"
/>', '');
Update applications Set news_article = replace(news_ar ticle, '<o:p>', '');
Update applications Set news_article = replace(news_ar ticle, '</o:p>', '');
Update applications Set news_article = replace(news_ar ticle, '</P>', '');
Update applications Set news_intro = replace(news_in tro, '<FONT face="Times
New Roman" color=#000000 size=3>', '');
Update applications Set news_intro = replace(news_in tro, '<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt">', '');
Update applications Set news_intro = replace(news_in tro, '<?xml:namespac e
prefix = o ns = "urn:schema s-microsoft-com:office:offi ce" />', '');
Update applications Set news_intro = replace(news_in tro, '<o:p>', '');
Update applications Set news_intro = replace(news_in tro, '</o:p>', '');
Update applications Set news_intro = replace(news_in tro, '</P>', '');
Update applications Set news_article = replace(news_ar ticle, '<SPAN lang=FR
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial; mso-ansi-language:
FR">', '');
Update applications Set news_article = replace(news_ar ticle, '<SPAN lang=FR
style="COLOR: black; mso-ansi-language: FR">', '');
Update applications Set news_article = replace(news_ar ticle, '</SPAN>', '');
Update applications Set news_article = replace(news_ar ticle, '<FONT
color=#000000>' , '');
Update applications Set news_article = replace(news_ar ticle, '</FONT>', '');
Update applications Set news_article = replace(news_ar ticle, '<SPAN lang=FR
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial; mso-ansi-language:
FR">', '');
Update applications Set news_article = replace(news_ar ticle, '<SPAN lang=FR
style="COLOR: black; mso-ansi-language: FR">', '');
Update applications Set news_article = replace(news_ar ticle, '</SPAN>', '');
Update applications Set news_article = replace(news_ar ticle, '<FONT
color=#000000>' , '');
Update applications Set news_article = replace(news_ar ticle, '</FONT>', '');
Update applications Set news_intro = replace(news_in tro, '<SPAN lang=FR
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial; mso-ansi-language:
FR">', '');
Update applications Set news_intro = replace(news_in tro, '<SPAN lang=FR
style="COLOR: black; mso-ansi-language: FR">', '');
Update applications Set news_intro = replace(news_in tro, '</SPAN>', '');
Update applications Set news_intro = replace(news_in tro, '<FONT
color=#000000>' , '');
Update applications Set news_intro = replace(news_in tro, '</FONT>', '');
+++++++++++++++ +++++++++++++++ +++++++++++++++ +++++++++++++++
END CODE
Many Thanks
(possibly using reg exps??)
BEGIN CODE
+++++++++++++++ +++++++++++++++ +++++++++++++++ +++++++++++++++ ++++++++++++
Update applications Set news_article = replace(news_ar ticle, '<FONT
face="Times New Roman" color=#000000 size=3>', '');
Update applications Set news_article = replace(news_ar ticle, '<P
class=MsoNormal style="MARGIN: 0cm 0cm 0pt">', '');
Update applications Set news_article = replace(news_ar ticle,
'<?xml:namespac e prefix = o ns = "urn:schema s-microsoft-com:office:offi ce"
/>', '');
Update applications Set news_article = replace(news_ar ticle, '<o:p>', '');
Update applications Set news_article = replace(news_ar ticle, '</o:p>', '');
Update applications Set news_article = replace(news_ar ticle, '</P>', '');
Update applications Set news_intro = replace(news_in tro, '<FONT face="Times
New Roman" color=#000000 size=3>', '');
Update applications Set news_intro = replace(news_in tro, '<P class=MsoNormal
style="MARGIN: 0cm 0cm 0pt">', '');
Update applications Set news_intro = replace(news_in tro, '<?xml:namespac e
prefix = o ns = "urn:schema s-microsoft-com:office:offi ce" />', '');
Update applications Set news_intro = replace(news_in tro, '<o:p>', '');
Update applications Set news_intro = replace(news_in tro, '</o:p>', '');
Update applications Set news_intro = replace(news_in tro, '</P>', '');
Update applications Set news_article = replace(news_ar ticle, '<SPAN lang=FR
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial; mso-ansi-language:
FR">', '');
Update applications Set news_article = replace(news_ar ticle, '<SPAN lang=FR
style="COLOR: black; mso-ansi-language: FR">', '');
Update applications Set news_article = replace(news_ar ticle, '</SPAN>', '');
Update applications Set news_article = replace(news_ar ticle, '<FONT
color=#000000>' , '');
Update applications Set news_article = replace(news_ar ticle, '</FONT>', '');
Update applications Set news_article = replace(news_ar ticle, '<SPAN lang=FR
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial; mso-ansi-language:
FR">', '');
Update applications Set news_article = replace(news_ar ticle, '<SPAN lang=FR
style="COLOR: black; mso-ansi-language: FR">', '');
Update applications Set news_article = replace(news_ar ticle, '</SPAN>', '');
Update applications Set news_article = replace(news_ar ticle, '<FONT
color=#000000>' , '');
Update applications Set news_article = replace(news_ar ticle, '</FONT>', '');
Update applications Set news_intro = replace(news_in tro, '<SPAN lang=FR
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial; mso-ansi-language:
FR">', '');
Update applications Set news_intro = replace(news_in tro, '<SPAN lang=FR
style="COLOR: black; mso-ansi-language: FR">', '');
Update applications Set news_intro = replace(news_in tro, '</SPAN>', '');
Update applications Set news_intro = replace(news_in tro, '<FONT
color=#000000>' , '');
Update applications Set news_intro = replace(news_in tro, '</FONT>', '');
+++++++++++++++ +++++++++++++++ +++++++++++++++ +++++++++++++++
END CODE
Many Thanks
Comment