摘要:
今天在在mysql中插入数据 因为直接插入查询出来的表格,insert into 表(student_id,class_id) 直接插入了这两个字段对应的查询出来的表 没有留意到该表的主键没有设置自增长,且主键不能为空, 所以出现了Duplicate entry '' for key 'PRIMAR 阅读全文
阅读排行榜
for 循环语句 (enumerate枚举,据说直接写出索引值)
2018-07-09 11:51 by 冻奶香甜玉米片, 2865 阅读, 收藏,
摘要:
for i in ***: 今天上课看到alex用了 for index,i in enumerate(list): print(index,i) (enumerate好像可以设置开头序号enumerate(list.start=)) 经实验: 结果: 0 [3]1 [4] 只是排序,从0开始,并不 阅读全文
Can’t update table ‘xxx’ in stored function/trigger because it is already used by statement which invoked this stored function/trigger
2018-09-02 19:00 by 冻奶香甜玉米片, 2454 阅读, 收藏,
摘要:
MySQL: Solution for ERROR 1442 (HY000): Can’t update table ‘xxx’ in stored function/trigger because it is already used by statement which invoked this 阅读全文
a标签美化
2018-09-11 13:43 by 冻奶香甜玉米片, 1330 阅读, 收藏,
摘要:
具体选中a标签给予宽高,这样才能在整个a标签范围内才能跳转 但是因为a标签是行内元素,所以要用display:blcok 转化为块状元素 且a标签不继承父元素的color 对a标签设置颜色,要选中a标签设置 给父盒子设置圆角:border-radius:3px(越大角弧度越大) 阅读全文
auto_increment 自增长
2018-08-27 11:11 by 冻奶香甜玉米片, 829 阅读, 收藏,
摘要:
auto_increment create table t20( id int primary key auto_increment, (自增长必须为键) name char(16)); insert into t20(name) values('egon'),('alex'),('wxx'); i 阅读全文
浙公网安备 33010602011771号