V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  sunnyandpenta  ›  全部回复第 1 页 / 共 1 页
回复总数  3
2022-04-29 16:34:52 +08:00
回复了 bthulu 创建的主题 Go 编程语言 go 用来业务开发, 开发速度是不是吊打其他语言?
@UserNameisNull 这个 go 反序列化 json 的是真的难用,,
2022-04-10 11:00:20 +08:00
回复了 dearzhw 创建的主题 职场话题 得物干一年有必要跳吗
米哈游只给 30 吗?只涨 2k 的话+双休,感觉不是很值得,跳槽都是有风险的,我感觉给的不够
2022-04-03 20:49:07 +08:00
回复了 Features 创建的主题 MySQL 关于 mysql 并发的问题又来了
start transaction
1.SELECT balance FROM user where user_id = #{userId} for update;
2. int affectRows = update user set balance=balance-100 where user_id = #{userId} and balance>=100;
3.
if(affectRows > 0){
commit;
}else{
rollback;
}
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2019 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms · UTC 01:33 · PVG 09:33 · LAX 18:33 · JFK 21:33
Developed with CodeLauncher
♥ Do have faith in what you're doing.