- 博客(3)
- 收藏
- 关注
转载 数据库锁机制的详细解释
T1: select * from table (请想象它需要执行1个小时之久,后面的sql语句请都这么想象)T2: update table set column1='hello'过程:T1运行 (加共享锁)T2运行If T1 还没执行完T2等…else锁被释放T2执行endifT2之所以要等,是因为T2在执行update前,试图对table表加一个排他锁,而数据库规定同一资源上不能同时共存共享锁和排他锁。所以T2必须等T1执行完,释放了共享锁,才能加上排他锁,然后才
2021-07-23 18:14:02 249
原创 MySQL 语句中执行优先级 -and比or高
MySQL 语句中执行优先级 -and比or高记录关于and和or用法生产出的问题。![本意是根据入池时间为null并且cus_sub_type='A'并且(is_public为1和null的)]但是 例如:select <include refid="Base_Column_List"></include> from mf_cus_customer where //enter_pool_date is null and cus_sub_type = 'A
2021-03-26 10:16:35 99
原创 java当传参传入多个时,出现Parameter 'username' not found. Available parameters are [arg1, arg0, param1, param2]
前台传入的参数多个报错例如登录功能,需要传入多个参数如图 @RequestParm String username,@RequestParm String password)需要注意的是@RequestBody和@RequestParm区别使用在mapper.xml中在mapper.xml中,SQL语句从前台传过来的写成arg0,arg1...
2019-11-29 15:29:56 1622
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人