这个语句oracle怎么写?

Anders_lt 2008-03-06 04:57:52
sqlserver语法
update tablea set tablea_column=tablea_column-tableb_column from tableb where tablea_id=tableb_id

请问oracle语法怎么写?
...全文
98 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
zjkk1011 2008-03-07
  • 打赏
  • 举报
回复
update tablea a
set tablea_column = tablea_column - (select tableb_column from tableb
where a.tablea_id=tableb_id)
where exists (select null from tableb
where a.tablea_id = tableb_id)
tanjun132 2008-03-06
  • 打赏
  • 举报
回复
update table a
set table a_column = (select a.tablea_column-b.tableb_column fromm tableb b where tablea_id=b.tableb_id )
就OK拉
ehsgs 2008-03-06
  • 打赏
  • 举报
回复
update table a set tablea_column = (select a.tablea_column-b.tableb_column fromm tablea a,tableb b where a.tablea_id=b.tableb_id )
ehsgs 2008-03-06
  • 打赏
  • 举报
回复
update table a set table a_col = (select tablea_column-tableb_column fromm tablea a,tableb b where a.tablea_id=b.tableb_id )
Anders_lt 2008-03-06
  • 打赏
  • 举报
回复
ding

17,377

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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