纯真导师

文章
4
资源
0
加入时间
3年0月21天

解决Python3.7+pymssql对sql server进行读写操作时中文乱码的问题(已解决)

问题描述:利用pymssql 对sql server的数据进行读取跟写入时,遇到许多中文编码的问题,像:where查询条件中包含中文的值时查不出来相应的记录(eg:select id, name from table_name where name='莫娜');插入记录中包含中文的值,插进去是乱码(eg:insert into table_name (id, name) values ('1','莫娜'); update table_name set name = '莫娜' where id =