Hi,
I have a number of sql scripts and within those scripts I need to comment out certain sections.
So, if the file is like below
text...
text...
text...
Insert into table ....( )
values ( ...)
/
commit
/
text...
text..
I need to start commenting out the lines where the first word is INSERT and finish after COMMIT. The comments need to be SQL style. So the resultant file should be
text...
text...
text...
/* Insert into table ....( )
values ( ...)
/
commit
/
*/
text...
text..
Any suggestions on how I could do it.
Many thanks.