码迷,mamicode.com
首页 >  
搜索关键字:average transaction    ( 3317个结果
org.hibernate.TransactionException: nested transactions not supported
public PlUser findByUsernameAndPassword(String username, String password) { Session sx = this.getHibernateTemplate().getSessionFactory().openSession(); Transaction tx =...
分类:Web程序   时间:2015-01-08 18:12:16    阅读次数:489
mysql事务块处理
begin ,rollback,commit .当然有的人用begin /begin work .推荐用START TRANSACTION 是SQL-99标准启动一个事务。 start transaction;update from account set money=money-100 wh...
分类:数据库   时间:2015-01-08 09:29:44    阅读次数:238
数据库的基本操作
数据库:管理数据的地方。 数据库的发展阶段:层次型、网状型、关系型。 DB(Database) DBMS(数据库管理系统) DBS(数据库系统) 主流的数据库:SQLServer,Oracle,DB2,sybase,access,foxpro SQL语言——国际化标准。Transaction-SQL...
分类:数据库   时间:2015-01-07 00:23:26    阅读次数:207
Hibernage错误:Could not open Hibernate Session for transaction
今天在做SSH框架整合的时候碰到的这个问题,在测试service层的时候程序正常运行,但是添加Struts,在action层测试的时候提示了如下问题:Could not open Hibernate Session for transaction。大概意思就是数据库连接超时。 解决方法如下: 在spring的配置文件中添加如下配置 给sessionFactory的bean添加如下配置 ...
分类:Web程序   时间:2015-01-06 23:08:56    阅读次数:300
学习笔记-数据仓库和数据挖掘
以下内容摘自互联网并作了整理。名词:BI(Business Intelligence):商业智能,DW(Data Warehouse):数据仓库,详见正文Q1部分。OLTP(On-Line Transaction Processing):联机事务处理也称为面向交易的处理系统,其基本特征是顾客的原始数...
分类:其他好文   时间:2015-01-06 17:32:32    阅读次数:172
69 column window is too narrow
长时间没操作窗口,再次操作时发现有点小卡,然后就执行了一下w,就发生了这个警告:[root@testtest]#w 69columnwindowistoonarrow该警告的意思是当前窗口太小,要显示的内容无法完整显示,需要调大窗口。解决方法有两种:1,将当前窗口调大;2,使用管道[root@testtest]#w|cat..
分类:Windows程序   时间:2015-01-06 15:49:57    阅读次数:456
JS html5 操作SQLite
//执行查询 $("#btnSQL").tap(function(){ var db = openDatabase('mydb', '1.0', 'Test DB', 2 * 1024 * 1024); db.transaction(function (tx) { tx.executeSql('CREATE TABLE IF NOT EX...
分类:数据库   时间:2015-01-06 10:09:54    阅读次数:205
Merge Sort
Good for array and linked list. Stable Sort.Time Complexity: Best, Average, Worst => O(nlogn);Space Complexity: O(n), in-place merge sort makes it ver...
分类:其他好文   时间:2015-01-04 13:25:46    阅读次数:156
O(n^2) Sortings
Insertion Sort:Time Complexity: Best O(n) (when already sorted); Average O(n^2); Worst O(n^2).Space Complexity: O(1) public static void main(String...
分类:其他好文   时间:2015-01-04 11:15:10    阅读次数:249
sailsjs nodejs mysql 事务操作回滚
async.auto({ ??transaction:?function(next){ ????User.query(‘BEGIN‘,?next); ??}, ??user:?[‘transaction‘,?function(next)?{ ????User.findOne(req.param(‘id‘)).exec(next); ??}], ??...
分类:数据库   时间:2015-01-04 06:35:50    阅读次数:862
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!