CREATE PROCEDURE dowhile()
BEGIN
DECLARE n int;
set n=1;
WHILE n
do
INSERT into hasindex(num) VALUES (n);
set n=n+1;
END WHILE;
END;
CALL dowhile();...
分类:
其他好文 时间:
2014-05-09 01:04:44
阅读次数:
293
在搭建一个spring3.0+hibernate+jpa项目框架,根据网友提供的例子,在junit下做了一个存储数据的测试,报如下异常:org.springframework.transaction.TransactionSystemException:CouldnotcommitJPAtransaction;nestedexceptionisjavax.persistence.RollbackException:Errorwhi..
分类:
其他好文 时间:
2014-05-09 00:56:47
阅读次数:
1238
#include "stdafx.h"#include #include using
namespace std;HANDLE hMutex;DWORD WINAPI Fun(LPVOID lp){ while(1){
WaitForSingleObject(hMutex,INFINITE); .....
分类:
编程语言 时间:
2014-05-08 22:41:35
阅读次数:
406
使用Axis2 Code Generator生成客户端代码到最后生成代码过程中报错,An
error occurred while completing process
-java.lang.reflect.InvocationTargetException解决办法如下:下载backport-uti...
分类:
系统相关 时间:
2014-05-08 15:13:57
阅读次数:
406
分析:EOFException表示输入过程中意外地到达文件尾或流尾的信号,导致从session中获取数据失败。异常是tomcat本身的问题,由于tomcat上次非正常关闭时有一些活动session被持久化(表现为一些临时文件),在重启时,tomcat尝试去恢复这些session的持久化数据但又读取失...
分类:
编程语言 时间:
2014-05-08 10:33:32
阅读次数:
392
由于python具有无限精度的int类型,所以用python实现大整数乘法是没意义的,但是思想是一样的。利用的规律是:第一个数的第i位和第二个数大第j位相乘,一定累加到结果的第i+j位上,这里是从0位置开始算的。代码如下:
import sys
def list2str(li):
while li[0]==0:
del li[0]
res=''
for i in li:
res+...
分类:
编程语言 时间:
2014-05-07 23:13:21
阅读次数:
453
void quickSort2(int a[], int l, int r) {
if (l < r) {
int i = l, j = r;
int x = a[l];
while (i < j) {
while (i = x) {
j--;
}
if (i < j) {
a[i++] = a[j];
}
whi...
分类:
其他好文 时间:
2014-05-07 12:03:15
阅读次数:
269
#include #include #include using namespace
std;int main(){ int n;cin>>n; while(n--){ stack s; string
str;cin>>str; for(int ...
分类:
其他好文 时间:
2014-05-07 00:19:41
阅读次数:
356
Sys.Application.add_load(function() {
var form = Sys.WebForms.PageRequestManager.getInstance()._form;
form._initialAction = form.action = window.location.href;
});
if (!documen...
分类:
Web程序 时间:
2014-05-06 23:36:38
阅读次数:
408
1,有几位数字
#include
int main_2_1_digit(){
int n;
while(scanf("%d",&n)){
int count = 0;
if(n==0)
count = 1;
while(n){
count++;
n/=10;
}
printf("%d\n",count);
}
return 0;
}
...
分类:
其他好文 时间:
2014-05-06 21:20:19
阅读次数:
374