1、创建Dao接口。
package com.ljh.jasonnews.server.dao;
import java.sql.Connection;
public interface Dao {
public Connection getConnection() throws DaoException;
}
2、创建BaseDao类,实现Dao接口,主要完成数据库的打开与关闭...
分类:
数据库 时间:
2014-07-22 23:02:55
阅读次数:
483
oracle@ywdb ~]$ sqlplus "/as sysdba"
SQL*Plus: Release 11.1.0.7.0 - Production on Tue Apr 29 15:40:38 2014
Copyright (c) 1982, 2008, Oracle. All rights reserved.
Connected to:
Oracle Data...
分类:
数据库 时间:
2014-07-22 23:01:54
阅读次数:
435
- (void)viewDidLoad{ [super viewDidLoad]; // Do any
additional setup after loading the view, typically from a nib. [NSThread
sleepForTimeInte...
分类:
移动开发 时间:
2014-05-02 00:25:42
阅读次数:
441
本文介绍如何配置SSAS数据库和cube相关维度的安全设置。
分类:
数据库 时间:
2014-05-02 00:23:41
阅读次数:
527
Command对象主要用于对数据源执行SQL命令并返回结果。
ADO.NET提供了Connection来连接数据库,同时也提供了Command对象来查询数据库。同Connection对象一样,Command也有两种:OleDbCommand和SqlCommand.其区别同Connection对象。
Command对象有一个属性:CommandType(sql...
分类:
数据库 时间:
2014-05-01 18:27:35
阅读次数:
287
org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.NEVER) - turn your Session into FlushMode.AUTO or remove 'readOnly' marker from transaction definition...
分类:
数据库 时间:
2014-05-01 18:16:35
阅读次数:
377
关于最大熵模型的介绍请看:http://www.cnblogs.com/hexinuaa/p/3353479.html
下面是GIS训练算法的python实现,代码不到100行。
from collections import defaultdict
import math
class MaxEnt(object):
def __ini...
分类:
其他好文 时间:
2014-04-30 22:46:39
阅读次数:
384
--跟踪文件读入到表中分析
SELECT * INTO ZGSJY
FROM fn_trace_gettable('E:\wxxcdbprofiler.trc', default);
--某时间内,最耗时SQL
select TOP 100 SUBSTRING(Textdata,1,660) as '名称',
count(*) as '数量', sum(duration/1000) as '总执行...
分类:
数据库 时间:
2014-04-30 22:37:39
阅读次数:
327
在PL/SQL程序中,对于处理多行记录的事务经常使用游标来实现。...
分类:
数据库 时间:
2014-04-30 22:16:38
阅读次数:
332
1,按照vmware,导入系统(注意td提供的版本是64位的)
2,linux系统:root/root
3,配置ip:
Enter a cop entry in the linux hosts file (/etc/hosts accessible from the linux command line in the VMware console, ie. c:>vi /etc/host...
分类:
其他好文 时间:
2014-04-30 22:13:39
阅读次数:
503