Home > Database > Mysql Tutorial > body text

ACCESS数据表不能修改的问题,高校帮帮忙啊

WBOY
Release: 2016-06-07 15:42:38
Original
1575 people have browsed it

表1--学校(int id,string intro), 表2--专业(int id,string intro) , 表3--学校重点专业(int id,int schoolId(引用学校表id),majorId(引用专业表Id)) 更新语句 update 学校重点专业 set schoolId=28,majorId=129 where id=61 但是更新的时候出错啦!异常信

表1-->学校(int id,string intro),

表2-->专业(int id,string intro) ,

表3-->学校重点专业(int id,int schoolId(引用学校表id),majorId(引用专业表Id))

更新语句 update 学校重点专业 set schoolId=28,majorId=129 where id=61

但是更新的时候出错啦!异常信息是

数据表‘学校’需要一个相关记录,不能添加或者修改记录!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!