这条SQL错在那里?

swanmarx 2003-10-17 10:13:28
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

这是为什么?
谢谢!
...全文
36 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
shuixin13 2003-10-17
  • 打赏
  • 举报
回复
是不是 MySQL 版本不一样??

多表 UPDATE 是从 MySQL 4.0.4 开始支持的

56,675

社区成员

发帖
与我相关
我的任务
社区描述
MySQL相关内容讨论专区
社区管理员
  • MySQL
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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