数据库学习
2whours
We cannot solve our problems with the same thinking we used when we created them.
展开
-
Windows载入redis报错问题
问题:Windows系统载入redis时,输入以下指令d:\redis>redis-server.exe redis.windows.conf报错如下:[11340] 03 Jul 09:30:52.283 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo[11340] 03 Jul 09:30:52.283 # Redis version=5.0.9, bits=64, commit=9414ab9b, modified=0, pid=113转载 2020-07-03 09:38:07 · 998 阅读 · 0 评论 -
锁住数据库表中特定条件的数据使其不可删除
开发中遇到的需求点:锁住数据库表中特定条件的数据使其不可删除思路:用触发器实现,当用户修改指定记录时,自动rollback事务并提示不可修改代码:抽空补上...原创 2020-01-10 16:14:27 · 591 阅读 · 0 评论 -
insert into select 扩充
插入数据时部分插入从别的表里取出的数据:可获取输入为id,name需要插入tbl_student表:id,name,genderinfo取自tbl_student_info表当s.id=si.id时,获得 info假设输入id:001 name:'zhangsan'表student_info中有 id:001 gender:male本质上是完成:INSERT INT...原创 2020-01-09 10:17:36 · 95 阅读 · 0 评论