这条SQL语句错在那里?

swanmarx 2003-10-17 10:09:41
update
jf_fee as a,
wy_room as b,
jf_calculaterecord as c,
wy_building as d

set a.paymethod='托收数据'
where
a.id=b.id
and b.buildingareaid='0707101202_1000000000000000038'
and b.buildingid='0707104859_1000000000000000228'
and d.buildingid='0707104859_1000000000000000228'
and a.is_arrears!='欠费已转'
and a.calserial=c.calserial
and c.calserial='0707013858_1000000000000002332'
and (a.status='未缴费' or latefeestatus='未缴费' or latefeestatus='')
and b.id='0707113543_1000000000000001580'

在MYSQL数据库下执行时,有的机器可以,有的不行
错误信息:
ERROR 1064: You have an error in your SQL syntax near 'as a,
wy_room as b,
jf_calculaterecord as c,
wy_building as d
set a.payme' at line 2

这是为什么?
谢谢!
...全文
40 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
spiritsl 2003-10-17
  • 打赏
  • 举报
回复
不支持别名
不支持update多表。
WnEunfn 2003-10-17
  • 打赏
  • 举报
回复
SQL没有错,可能是MySQL的问题……
huangry 2003-10-17
  • 打赏
  • 举报
回复
up
swanmarx 2003-10-17
  • 打赏
  • 举报
回复
其实没有错!
aku0708 2003-10-17
  • 打赏
  • 举报
回复
up
mtou 2003-10-17
  • 打赏
  • 举报
回复
要更改数据的列的名称,能用别名吗?

81,091

社区成员

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

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