首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > Access >

update报错,请指点

2012-02-13 
update报错,请大虾指点Update table1inner join table2 on table1.idtable2.idSet table1.noMax(table2.

update报错,请大虾指点
Update table1 inner join table2 on table1.id=table2.id
Set table1.no=Max(table2.no) 
Where table2.id =1 
报 试图执行的查询中不包含作为聚合函数一部分的特定表达式“no”
请问如何 解决

[解决办法]
update table1
set [no]=dmax('[no]','table2','id='&id)

假设ID为数字型

热点排行