首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ Builder >

XE2的ADOCommand->CommandText如何存储Unicode啊ADOCommand->ParamCheck=false;无效

2012-03-31 
XE2的ADOCommand-CommandText怎么存储Unicode啊?ADOCommand-ParamCheckfalse无效如题,ADOCommand-Par

XE2的ADOCommand->CommandText怎么存储Unicode啊?ADOCommand->ParamCheck=false;无效
如题,

ADOCommand->ParamCheck=false;
ADOCommand->CommandText=存储Unicode字符的SQL语句;

执行后数据库中的Unicode字符都是?,怎么写入Unicode字符到数据库啊?

[解决办法]
用参数传试试。ParamByName...
[解决办法]
我估计是数据库的字段类型设置的不对
char/varchar是不支持unicode的
要改用nchar/nvarchar

热点排行