update 的限制条件应该怎么写?

taohan66 2006-04-29 10:19:35
在VC中的一个update语句,

vSQL.Format("update filese set indexct='%s'",strEnd,where Sfileid=count);

Sfileid是主码,count是一个int型的数值,

想更新indexstct,条件是在确定的Sfileid下,应该怎么写呢?
...全文
199 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
taohan66 2006-04-29
  • 打赏
  • 举报
回复
收到,谢谢
largedong 2006-04-29
  • 打赏
  • 举报
回复
vSQL.Format("update filese set indexct='%s'",strEnd,where Sfileid=count);
写错了吧

vSQL.Format("update filese set indexstct='%s' where Sfileid=count",strEnd );

lqm1003 2006-04-29
  • 打赏
  • 举报
回复
vSQL.Format("update filese set indexct='%s' where Sfileid=count",strEnd);

4,011

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 数据库
社区管理员
  • 数据库
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧