- 博客(4)
- 收藏
- 关注
原创 在sybase数据库存储过程中使用select for update 获取更新序列号
在笔者之前的项目中获取流水号的实现如下:序列号定义在一张表的某个字段中,通过select查询该字段,并且update +1,从而实现获取自增流水号。 但在高并发的环境中,会出现流水号重复的情况。后来通过 select for update 控制并发,存储过程代码如下:create proc getTransSeqNo1 @returnId numeric(10) output
2016-09-04 14:02:17 2439
原创 java冒泡排序和选择排序
int[] a={1,2,11,11,5,11,7,8,9,0};int temp=0;//冒泡排序// for(int i=0;i// for(int j=0;j// if(a[j+1]>a[j]){// temp=a[j];// a[j]=a[j+1];// a[j+1]=temp;// count ++;// }// }// }// /
2016-07-09 18:41:54 268
原创 在外部js文件中获取web工程名
var pathName=window.document.location.pathname;var projectName=pathName.substring(0,pathName.substr(1).indexOf('/')+1);
2016-06-25 09:51:52 868
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人