update a set a.UpDownExtent=round(((b.NewValue-b.YesterdayClose)/b.YesterdayClose)*100,3) from BuyLog a leftjoin SumStock b on a.CodeID=b.CodeID where b.States<>0and a.UserID=1
这句在 SQL Server 里执行很正常,可是在access数据库执行就报错:语法错误(操作符丢失)在查询表达式 请问改如何改正?谢谢!
update BuyLog set a.UpDownExtent=round(((b.NewValue-b.YesterdayClose)/b.YesterdayClose)*100,3) from BuyLog a left join SumStock b on a.CodeID=b.CodeID where b.States <>0 and a.UserID=1
update BuyLog set a.UpDownExtent=round(((b.NewValue-b.YesterdayClose)/b.YesterdayClose)*100,3)
from BuyLog a leftjoin SumStock b on a.CodeID=b.CodeID
where b.States <>0and a.UserID=1
update BuyLog
set a.UpDownExtent=round(((b.NewValue-b.YesterdayClose)/b.YesterdayClose)*100,3)
from BuyLog a , SumStock b
where a.CodeID = b.CodeID and b.States <>0and a.UserID=1
update BuyLog
set a.UpDownExtent=isnull(selectround(((b.NewValue-b.YesterdayClose)/b.YesterdayClose)*100,3) from SumStock b where a.CodeID = b.CodeID and b.States <>0and a.UserID=1 , a.UpDownExtent)
from BuyLog a
update BuyLog
set a.UpDownExtent=round(((b.NewValue-b.YesterdayClose)/b.YesterdayClose)*100,3)
from BuyLog a , SumStock b
where a.CodeID = b.CodeID and b.States <>0and a.UserID=1
SQL code
update BuyLog
set a.UpDownExtent=isnull(selectround(((b.NewValue-b.YesterdayClose)/b.YesterdayClose)*100,3)
from SumStock b where a.CodeID = b.CodeID and b.States <>0and a.UserID=1 , a.UpDownExtent)
from BuyLog a
update BuyLog set UpDownExtent=round(((b.NewValue-b.YesterdayClose)/b.YesterdayClose)*100,3) from BuyLog a left join SumStock b on a.CodeID=b.CodeID where b.States <>0 and a.UserID=1
update BuyLog set UpDownExtent=round(((b.NewValue-b.YesterdayClose)/b.YesterdayClose)*100,3) from BuyLog a left join SumStock b on a.CodeID=b.CodeID where b.States <>0 and a.UserID=1
update BuyLog a leftjoin SumStock b on a.CodeID=b.CodeID
set a.UpDownExtent=round(((b.NewValue-b.YesterdayClose)/b.YesterdayClose)*100,3)
where b.States<>0and a.UserID=1