这个sql语句对不对

setsailgo 2003-11-19 09:37:40
//将借出库未还的书在书库中更新

update bookinfo set 借出标记=true from(select * from borrowinfo where 类别='书籍' and 还书标记=false) where bookinfo.编号=borrowinfo.编号

怎么一运行,老提示我 “操作符丢失”!
...全文
44 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
setsailgo 2003-11-19
  • 打赏
  • 举报
回复
up
wenhongL 2003-11-19
  • 打赏
  • 举报
回复
update bookinfo set 借出标记=true Where 编号 In(select 编号 from borrowinfo where 类别='书籍' and 还书标记=false)

chenyubang 2003-11-19
  • 打赏
  • 举报
回复
where附近发生错误.

不用select
括号括到最后
^________.^
lemonchen 2003-11-19
  • 打赏
  • 举报
回复
update bookinfo set 借出标记=true Where 编号 In(select 编号 from borrowinfo where 类别='书籍' and 还书标记=false)
xiamen3611 2003-11-19
  • 打赏
  • 举报
回复
update bookinfo set 借出标记=true Where bookinfo.编号 In(select 编号 from borrowinfo where 类别='书籍' and 还书标记=false)
liuqiangName 2003-11-19
  • 打赏
  • 举报
回复
set 借出标记=true from(select * from borrowinfo where 类别='书籍' and 还书标记=false) from前没有select 等关键字.

7,712

社区成员

发帖
与我相关
我的任务
社区描述
Microsoft Office Access是由微软发布的关系数据库管理系统。它结合了 MicrosoftJet Database Engine 和 图形用户界面两项特点。
社区管理员
  • Access
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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