Access 的 update 注意

发现在 access 下的时候,如果你可以这样查询一张表:

select * from  be_Posts  where postID = "a9c2dc1f-87d2-4bf2-b2cd-ff5542a51077";

其中 postID 字段类型为 “数字” 的 “同步复制 ID”,在数据库中的表现形式为 {A9C2DC1F-87D2-4BF2-B2CD-FF5542A51077}

但是我在更新语句中,用这样的语句却无法更新,不提示错误,只提示更新 0 条记录:
update be_Posts set title = ' 玉龙雪山 3' where postID = "a9c2dc1f-87d2-4bf2-b2cd-ff5542a51077";

如果改用以下的 2 种形式都可以更新成功:
update be_Posts set title = ' 玉龙雪山 3' where postID = "{a9c2dc1f-87d2-4bf2-b2cd-ff5542a51077}"

update be_Posts set title = ' 玉龙雪山 3' where postID = {a9c2dc1f-87d2-4bf2-b2cd-ff5542a51077}

以上两种形式能可以,这是在 access 中发现的,不知道在其他数据库是否也存在这样的问题,留意下。