- 积分
- 9
UID828647
主题
在线时间 小时
注册时间2008-11-4
|
马上注册,结识高手,享用更多资源,轻松玩转三维网社区。
您需要 登录 才可以下载或查看,没有帐号?注册
x
如题,为什么我始终查询不了带有blob的数据集合
6 {0 t6 y, y* _/ d4 N, g5 ~下面是代码 K! l% F. G. N' `# \$ j8 \* [1 @& I
CAdoRecordSet rs(g_DocVars.m_pAdoCon);
, \1 `8 f; N* I. u( E; r CString strSql;
8 t" P3 w0 [0 Z2 v8 V( o/ v" A( g strSql.Format(L"select * from table where id=%d and name='%s'",lID,lpname);
. S: [. H& x# U+ m3 c1 X rs.Open(strSql/*,adCmdText,adOpenKeyset,adLockOptimistic*/);
l# B" z& f, {; ~ h+ f" j; Z if (1> rs.GetValueLong("id"))
1 U# K! l$ l# L4 t# B这个if始终成功,无论我是否有数据2 O+ ?+ ]6 t$ L
' y' ^. W" o$ Z3 h* m, Z4 h/ y; ~7 Z( e
table带有blob字段# m+ D Q9 a5 y5 c, L+ X g$ |
% ~' ^1 N7 k) T! A1 Z0 B
[ 本帖最后由 hchdown 于 2008-11-5 11:02 编辑 ] |
|