sprintf(sSql,"SELECT *FROM information WHERE id='%s'",str); str是CString类型
工程字符集是什么,是不是Unicode,这样的话,你sprintf处理会有问题,要用swprintf。