好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

解决无法在unicode和非unicode字符串数据类型之间转换的方法详解

今天用excel导入数据又遇到了……

    错误 0xc02020f6:数据流任务:列“column”无法在 unicode和非unicode字符串数据类型之间转换。

    原因:仔细看了一下,发现有些字段是varchar的,而excel中估计都是nvarchar类型。

    方法:

         1.修改表字段类型为nvarchar。

         2.导入一个临时表,再insert*** into *** select ***。

         3.直接通过应用程序读入记录集,然后再一条一条insert into ……。

您可能感兴趣的文章: C#将Unicode编码转换为汉字字符串的简单方法 python 转换 Javascript %u 字符串为python unicode的代码 golang实现unicode转换为字符串string的方法 JavaScript中字符串与Unicode编码互相转换的实现方法 JavaScript字符串对象fromCharCode方法入门实例(用于把Unicode值转换为字符串) Java String字符串和Unicode字符相互转换代码 JS 文字符串转换unicode编码函数 asp实现二进制字符串转换为Unicode字符串 js字符串与Unicode编码互相转换

查看更多关于解决无法在unicode和非unicode字符串数据类型之间转换的方法详解的详细内容...

  阅读:43次