update ans a set
mark=(select max(b.mark) as mark from score b
where b.id=1 and b.code0=2
and b.code1=0 and a.ord=b.ord and a.ans=b.ans
)
where no= 1
在Oracle可以执行,在Access 怎么执行不了呢
...全文
412打赏收藏
请教关于Access 的SQL语句问题
update ans a set mark=(select max(b.mark) as mark from score b where b.id=1 and b.code0=2 and b.code1=0 and a.ord=b.ord and a.ans=b.ans ) where no= 1 在Oracle可以执行,在Access 怎么执行不了呢
update ans set
mark=(select max(b.mark) as mark from score b
where b.id=1 and b.code0=2
and b.code1=0 and a.ord=b.ord and a.ans=b.ans
)
from ans a
where no= 1