Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
b1d74a16
Commit
b1d74a16
authored
Feb 01, 2019
by
cjl
Browse files
为应对多点部署保证高并发场景使用正确添加排它锁
parent
66baa3df
Changes
2
Hide whitespace changes
Inline
Side-by-side
sql/jsh_erp.sql
View file @
b1d74a16
...
...
@@ -5277,7 +5277,7 @@ declare _maxvalue bigint; -- 接收最大值
declare _increment int; -- 接收增长步数
set _increment = (select increment_val from tbl_sequence where seq_name = name);
set _maxvalue = (select maxvalue from tbl_sequence where seq_name = name);
set _cur = (select current_val from tbl_sequence where seq_name = name);
set _cur = (select current_val from tbl_sequence where seq_name = name
for update
);
update tbl_sequence -- 更新当前值
set current_val = _cur + increment_val
where seq_name = name ;
...
...
sql/华夏ERP数据库设计汇总.xlsx
View file @
b1d74a16
No preview for this file type
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment