码迷,mamicode.com
首页 >  
搜索关键字:evicting instance 2 from cluster    ( 67513个结果
ORA-01791: not a SELECTed expression
Student表有3个字段:id,name,age看这两个SQL语句(1)select name from student order by id;(2)select distinct(name) from student order by id;执行结果你可能会说:第1句返回以id排序的所有nam...
分类:其他好文   时间:2014-05-09 23:42:19    阅读次数:368
使用sql语句查询日期在一定时间内的数据
使用sql语句查询日期在一周内的数据select * from ShopOrder where datediff(week,ordTime,getdate()-1)=0 //查询当天日期在一周年的数据select * from ShopOrder where datediff(day,ordTime...
分类:数据库   时间:2014-05-09 23:37:52    阅读次数:658
hibernate里createSQLQuery的addEntity()和setResultTransformer()方法
1.使用SQLQuery对原生SQL查询执行的控制是通过SQLQuery接口进行的,通过执行Session.createSQLQuery()获取这个接口。最简单的情况下,我们可以采用以下形式:Listcats = sess.createSQLQuery( " select * from cats "...
分类:数据库   时间:2014-05-09 23:07:17    阅读次数:589
我对hibernate和mybatis框架的比较
系统在选择操作数据库的框架上面,到底是选择hibernate,还是mybatis。     首先说下两者的原理,如果你要关联几张表做查询,查出20条记录: 1.如果是mybatis SELECT *   FROM (SELECT INNER_TABLE.*, ROWNUM OUTER_TABLE_ROWNUM           FROM (select SP_WORK_PLAN.nam...
分类:系统相关   时间:2014-05-09 22:56:46    阅读次数:540
【转】Linux的bg和fg命令
from: http://hi.baidu.com/dashi6174/item/e85dcc321336c9c12f8ec21c?qq-pf-to=pcqq.c2cLinux的bg和fg命令我们都知道,在 Windows 上面,我们要么让一个程序作为服务在后台一直运行,要么停止这个服务。而不能让程...
分类:系统相关   时间:2014-05-09 19:54:21    阅读次数:349
python调用c代码
Linux环境下使用python调用C的printf例子:#!/usr/bin/env python2.7#-*- coding:utf-8 -*-from ctypes import *def test(): #libc = cdll.LoadLibrary("libc.so.6") ...
分类:编程语言   时间:2014-05-09 19:51:59    阅读次数:469
SQL Server select 将类型相同的行合并
select Category from(select distinct Category from T_Detail where CREATED_BY= @CREATED_BY AND RecordDate>=@RecordDate1 AND RecordDate<@RecordDate2)t g...
分类:数据库   时间:2014-05-09 19:18:43    阅读次数:339
How to start/stop DB instance of Oracle under Linux
How to start/stop DB instance of Oracle under Linux...
分类:数据库   时间:2014-05-09 15:10:41    阅读次数:380
Python入门教程--测试局域网中的电脑是否连通
假设我们有这么一项任务:简单测试局域网中的电脑是否连通.这些电脑的ip范围从192.168.0.101到192.168.0.200.       思路:用shell编程.(Linux通常是bash而Windows是批处理脚本).例如,在Windows上用ping ip 的命令依次测试各个机器并得到控制台输出.由于ping通的时候控制台文本通常是"Reply from ... "...
分类:编程语言   时间:2014-05-09 14:14:27    阅读次数:343
MySQL分页实现
mysql> select pname from product; +--------+ | pname  | +--------+ | 产品1  | | 产品2  | | 产品三 | +--------+ 3 rows in set (0.00 sec) 这个地方是说,从product中选出所有的pname来,一共有三条记录。 MySQL中的分页非常简单,我们可以...
分类:数据库   时间:2014-05-09 13:53:45    阅读次数:256
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!