Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 .txt 中有一个 csv,需要将其导入MySql 我正在手动将其导入到我的表中,但它不断给我这个错误:第 706 行的 CSV 输入中的列数无效。
在 excel 上检查它唯一可能导致问题的信息是其中一个单元格包含: 5.5 x 18"
probably the quotation mark is doing it
我该如何解决这个问题?谢谢你
我相信您所需要的只是:
str_replace('"', '\"', $value);
通过用 \ 替换“”,您正在转义它,它应该正确插入。