更新查询中的问题 [英] Issue in update query

查看:74
本文介绍了更新查询中的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何更新表中的记录,但是我正在使用表,就像这样:(此代码有错误)

How can I update records in table but I am using table just like this:(this code has error)

UPDATE payment AS p FROM income AS i, details AS d 
WHERE p.name = i.name AND d.department = i.department
AND p.name = 'NAME'

推荐答案

通过SQL Update语句,您无法更新表.您可以只更新行.

请参见 SQL更新 [
By SQL Update statement you can''t update a table. you can just update rows.

See SQL Update[^] for more.


这篇关于更新查询中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆