I'm attempting to insert some data from MySQL to SQL Server. I've dumped the MySQL table to a text file as SQL insert statements. I can insert it into SQL Server ok but the carriage returns are inserting as \\r\\n rather than as control sequences. How can I replace the \\r\\n strings in the MySQL insert statements so that they will end up as carriage returns in SQL Server?
我能想到的唯一方法是用' + CHAR(13) + CHAR(10) + '
替换\\r\\n
。
Just replace the \\r\\n escape sequence with a line break. Example:
select 'This is
a multi-line
string'
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.