无法删除和更新访问链接表上的记录(cannot delete and update records on access linked table)

编程入门 行业动态 更新时间:2024-10-22 08:24:15
无法删除和更新访问链接表上的记录(cannot delete and update records on access linked table)

我有访问数据库名为road.mdb。 在road.mdb里面,我有一个链接的SQL表和 表名是学生。

我可以在MSAccess中使用查询设计插入记录

但我不能更新也不能删除

当运行删除查询时,错误是:无法从指定的表中删除

delete from student where studentid=303;

当我在下面运行更新查询时,错误是:操作必须使用可更新的查询

update student set Name='BOB' where studentid= 303;

我可以完全访问sql数据库,我可以使用sql management studio运行查询。 使用MSaccess中的查询设计是否无法删除和更新? 奇怪的是我可以使用MSaccess中的查询设计插入新记录

谢谢

I have access database called road.mdb. Inside road.mdb, I have a linked SQL table and the table name is student.

I can insert records using query design in MSAccess

But I cannot update nor Delete

when run delete query below, the error is: could not delete from specified table

delete from student where studentid=303;

and when I run update query below, the error is: Operation must use an updateable query

update student set Name='BOB' where studentid= 303;

I have full access to the sql database and I can run the query OK using sql management studio. Is it impossible to delete and update using query design inside MSaccess?? The weird thing is I can insert new records using query design inside MSaccess

thank you

最满意答案

我通过向SQL表添加主键并将表重新链接到ACCESS来解决这个问题

感谢大家...

I SOLVED this by adding primary key to the SQL table and re linked the table to ACCESS

Thanks everyone...

更多推荐

本文发布于:2023-08-02 03:41:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1368400.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:表上   链接   delete   update   table

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!