备注字段中的双引号导致解析问题

备注字段中的双引号导致解析问题

本文介绍了备注字段中的双引号导致解析问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我正在开发一个从商业网站导入CSV文件的数据库。该文件是一个CSV文件,带有双引号以标识文本。在这个文件中,有一个备忘录字段,人们偶尔会使用双引号。这导致解析破坏b / c csv /文本文件生成器将其与字符串的末尾混淆。 我知道使用两个双引号是一种获取方式围绕这个,但我不能让csv文件以这种方式输出数据。还有其他的解决方法吗? 谢谢 托德解决方案 Hi,I am developing a DB that imports a CSV file from a commerce site. The file is a CSV file with double quotes to identify text. In this file, there is a memo field where people occassionally use double quotes. This causes the parsing to corrupt b/c the csv/text file generator is confusing this with the end of the string.I am aware that using two double quotes is a way to get around this but i am not able to get the csv file to output data this way. is there any other workaround?thanksTodd 解决方案 这篇关于备注字段中的双引号导致解析问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-15 14:08