有时候我们在使用事务循环保存多个对象时,可能会出现在提交事务后发现只保存了最后一个对象例如public void saveSystemDDL(SystemDDLPojo systemDDLPojo) { String keywordname = systemDDLPojo.getKeywordna....
分类:
其他好文 时间:
2014-07-08 22:47:14
阅读次数:
305
1.查询索引数量select table_name, count(*) cnt from user_indexes where index_type='NORMAL' group by table_namehaving count(*) >= 1order by cnt desc ;2.查询外键未....
分类:
数据库 时间:
2014-07-08 22:40:18
阅读次数:
308
TCP创建socket:1 int socket(int domain, int type, int protocol);AF = Address FamilyPF = Protocol FamilyAF_INET IPv4 Internet protocols ip(7)AF_INET6 IPv6...
分类:
其他好文 时间:
2014-07-08 22:39:05
阅读次数:
352
ylbtech-DatabaseDesgin:ylbtech-cnblogs(博客园)-数据库设计-2,Admin(用户后台)DatabaseName:同学录Model:Type:Url:1.A,数据库关系图(Database Diagram) 返回顶部1.B,数据库设计脚本(Database De...
分类:
数据库 时间:
2014-07-08 22:37:39
阅读次数:
304
glusterfs中的内存管理方式: 1 struct mem_pool * 2 mem_pool_new_fn (unsigned long sizeof_type, 3 unsigned long count, char *name) 4 { 5 ...
分类:
其他好文 时间:
2014-07-08 21:50:47
阅读次数:
441
旋转可以分为n种置换,对应的不同等价类分别是gcd(n,i)个i=0时不动,有n个
翻转分为奇偶讨论,奇数时有n种置换,每种有n/2+1个
偶数时有n种置换,一半是n/2+1个,一半是n/2个
#include
#include
#include
#include
#include
#include
using namespace std;
typedef long long ll;...
分类:
其他好文 时间:
2014-07-08 19:05:15
阅读次数:
163
作用:
在屏幕上显示文字信息及是否回显命令本身
命令格式:
echo [{on|off}] [显示内容]
demo:
bat:
@echo off
echo ***命令不显示****
type a.txt
echo ***helloworld****
echo ***命令开始显示****
echo on
type b.txt
pause
...
<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv="Content-Type"content="text/html;charset=gb2312"/><t..
分类:
Web程序 时间:
2014-07-08 12:05:38
阅读次数:
214
<scripttype="text/javascript"src="js/jquery-1.7.js"></script><scripttype="text/javascript">$(function(){ $("#button").click(function(){ $.ajax({ url:‘myServlet‘, type:‘post‘, dataType:‘json‘, //data:{‘username‘:$("#username").val()},/..
分类:
Web程序 时间:
2014-07-08 10:09:29
阅读次数:
257
static_cast该运算符把expression转换为type-id类型,但没有运行时类型检查来保证转换的安全性。C++中的static_cast执行非多态的转换,用于代替C中通常的转换操作。因此,被做为显式类型转换使用。比如:inti;floatf=166.71;i=static_cast<int>(f);此时结果,i的值为166..
分类:
编程语言 时间:
2014-07-08 09:48:43
阅读次数:
147