一次项目中使用hibernate 的templet方式执行普通sql,方式如下:String sql ="select count(*) as c from users";SQLQuery sq = session.createSQLQuery(sql);Object count = sq.uniq...
分类:
数据库 时间:
2014-07-09 14:33:35
阅读次数:
256
今天添加了发送邮件的功能,总结一下,供以后参考:1、直接使用管道发送邮件echo "hello,this is the content of mail.welcome to www.mzone.cc" | mail -s "Hello from mzone.cc by pipe" admin@qun...
分类:
系统相关 时间:
2014-07-09 14:03:32
阅读次数:
200
表格ChannelReward和表格RewardSuppleSettle中都有一下几个字段JSMonth, ChannelNo, RewardSum, RewardItem。要将两个表中RewardSum>0的记录都显示在一个表中,可以使用联合查询select * from(SELECT JSMon...
分类:
其他好文 时间:
2014-07-09 13:57:45
阅读次数:
134
首先解压,在assets文件夹下在找到了要汇编的文件:appmgr.jar,这个文件在安装后在/data/data//files/文件夹下会生成一个appmgr.apk,其实只是一个存放代码的资源文件,安装的时候重命名了,以apk结尾罢了。解压这个jar文件,得到classes.dex,拖到IDA ...
分类:
其他好文 时间:
2014-07-09 13:52:38
阅读次数:
288
Creating a selection filter that finds dynamic blocks in AutoCAD using .NETAn interesting question came in via email from Rob Outman. He’s interested ...
分类:
其他好文 时间:
2014-07-09 13:51:57
阅读次数:
324
注意将form2中的botton2的modyfier属性修改为publicform1代码usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawin...
原表格:V_ChannelReward结构为:select * from V_ChannelReward pivot (max(RewardSum) for RewardItem in ([星级奖励],[自建空充酬金],[首充酬金],[BOSS待办酬金],[激活酬金],[神州行上网套餐拓展酬金],[...
分类:
其他好文 时间:
2014-07-09 13:15:21
阅读次数:
168
The concept of prototype in JavaScript is very confusing, especially to those who come with a C++/JAVA/... background. As an OOP langauge, JavaScript is very different from the languages with class. I...
分类:
编程语言 时间:
2014-07-09 12:55:02
阅读次数:
253
总所周知,mysql分页是这样写的: select * from 'yourtable' limit start,rows 现在我数据库一张表里面有9969W条数据,表名叫tweet_data
select count(*) from tweet_data
执行第一条sql语句,就查6000000条开始的10条,看查询时间
58s这得有多慢!
解决方案一、
有人立马...
分类:
数据库 时间:
2014-07-09 10:50:54
阅读次数:
290
1、错误描述
The 'org.eclipse.jdt.ui.JavaAllCompletionProposalComputer' proposal computer from 'org.eclipse.jdt.ui' plug-in did not complete normally. The extension took too long to return from the 'c...
分类:
系统相关 时间:
2014-07-09 10:25:44
阅读次数:
951