MySql中插入汉字
小弟最近使用VC+MySql
在命令行下输入:insert into table values(10,'您好',5);
正常
但在VC下使用代码输入:
res = mysql_query(&my_connection, "insert into table values(20,'失败',5)");
出错,出错提示为:Insert error 1406: Data too long for column 'fname' at row 1
请问各位大虾如何使用VC在数据库中插入汉字!