I have a file which contains sql statements.
Now in this file, I want to add a word “collate” after every ‘char()’ and ‘varchar()’ in the file.
How do you do that?
I have a file which contains sql statements. Now in this file, I want
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Iterate through the file line by line. On each String do two replaceAll( … ) using your Strings above. Then write each line into a new File. When done, rename the original file to some back-up name and rename the new file to the original file’s name.
Edit 1
I just noticed your
javascripttag. So what type of problem is this,JavaorJavascript?