- 博客(5)
- 收藏
- 关注
原创 onchange事件不触发
function方法的参数默认是一个字符串,而不是一个对象或者是其他类型 更改前: οnchange=“changequantity(this,entry.key,{entry.key},entry.key,{entry.value.quantity})” 更改后: οnchange=“changequantity(this,’entry.key′,′{entry.key}','entry.key...
2020-04-09 22:04:12 1637
原创 mysql1452错误
这是因为表设置了外键约束,而你试图插入一条外键字段所在表纪录不存在的一个值,就会报1452错。 比如a、b两表,a表外键id值来自b表的ID。当你在a表中插入一条纪录时,id字段用了不在b表ID值范围内的值,就会报此错。 引文:https://www.cnblogs.com/Aha-Sanding/p/5575766.html ...
2020-03-19 20:41:37 627
原创 Cannot delete or update a parent row: a foreign key constraint fails
由于数据库里order表和orderitem表存在外键约束。删除表orderitem中的order_id,order_id被order的id主键所引用,就会抛出如下异常: Cannot delete or update a parent row: a foreign key constraint fails 解决方法:级联删除 ...
2020-03-17 21:06:26 310
原创 图书重复显示一条数据的解决方法
修改前: List list=new ArrayList<>(); Connection conn=null; Statement st=null; ResultSet rs=null; Book book=new Book();//这里只实例化了一个对象 conn=dbutils.getConnection(); String sql="select distinct(nam...
2020-03-14 15:32:37 194
原创 ## 标题 使用eclipse遇到的错误JavaWeb【404,The origin server did not find a current representation for the targ
标题 使用eclipse遇到的错误JavaWeb【404,The origin server did not find a current representation for the target resource······】 Dynamic Web Module版本为4.0 web.xml 版本为3.1 web.xml配置错误,更改为4.0即可 ...
2020-03-07 17:01:49 1049
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人