Explore Courses Blog Tutorials Interview Questions
0 votes
in SQL by (20.3k points)

When I run a particular SQL script in Unix environments, I'm am seeing a '^M' character at the end of each line of the SQL script as it is echoed to the command-line. I don't know on which OS the SQL script was originally created.

What is causing this and how do I fix it?

1 Answer

0 votes
by (40.7k points)

Try fixing the line endings in vi by executing the following code:

:set fileformat=unix


Browse Categories