- 浏览: 58674 次
最新评论
文章列表
http://rongmayisheng.com/post/eclipse%E6%9C%80%E6%9C%89%E7%94%A8%E5%BF%AB%E6%8D%B7%E9%94%AE%E6%95%B4%E7%90%86
sql 进行语言排序
- 博客分类:
- 数据库
NLSSORT,可以用来进行语言排序,且不影响当前会话.
用法示例:
拼音SELECT * FROM TEAM ORDER BY NLSSORT(排序字段,'NLS_SORT = SCHINESE_PINYIN_M')笔划SELECT * FROM TEAM ORDER BY NLSSORT(排序字段,'NLS_SORT = SCHINESE_STROKE_M')部首SELECT * FROM TEAM ORDER BY NLSSORT(排序字段,'NLS_SORT = SCHINESE_RADICAL_M')
oracle row_number()
要求查询每个用户对应的最大样品信息,忽然想到ms sql提供过 row_number() over(partition by 列 order by 列 desc),那么oracle可能也存在,
我的表结构如下:
create table NEOGOODSRULE
(
ID NUMBER(
//柱状图终端跳转方法
function columnTomobileInfo(checkScope,checkName,allScope){
var pageDiv=document.getElementById("page");
var url="columnTomobileInfo.action";
var toMobileInfoPrm=new Object()
toMobileInfoPrm.checkScope=checkScope;
toMobileInfoPrm.checkName=checkName;
toMob ...
java double四舍五入两位小数
- 博客分类:
- java
public static void main(String[] args){
int a=11;
int b=3;
System.out.println((double)a/b);
DecimalFormat df = new DecimalFormat("#.00");
System.out.println(df.format((double)a/b));
System.out.println(Math.round((double)a/b));
}
用ibatis 进行登录操作时sql查询居然范了个sql注入的大错 直接拼接的sql
public List userLogin(String username,String pwd){
String sql = "select username,pwd,user_type from T_MFF_USER_INFO "
+ " where username = '"+username+"'"
+ " and pwd = '" + pwd +"'";
List list = (L ...
java 日志页面展示 抓取远程的文件
- 博客分类:
- java
/**
* 抓取远程的文件
*
* @param url
* @return
* @throws IOException
*/
public static String getLogContent(String url) {
StringBuffer sb = new StringBuffer();
URL HttpUrl;
HttpURLConnection con = null;
BufferedReader reader = null;
try {
HttpUrl = new URL(url);
con = (HttpURLConnection) HttpU ...
<a href="javascript:void(0);" onclick="delTask(event,${ROLE_ID},8,${page},${pageSize});return false;" title="取消"><em class="t_quxiao"></em></a>
//删除方法
function delTask(e,role_id,flag,page,pageSize){
e = e||window.event;
if(confirm(& ...
<c:if test="${roleBase[0].apkname!=''}">
<c:if test="${fn:length(roleBase[0].apkname)>20}">
${fn:substring(roleBase[0].apkname,0,20)}...
</c:if>
<c:if test="${fn:length(roleBase[0].apkname)<=20}">
${roleBase[0].apkname}
...
跨ifream获取控件
- 博客分类:
- js jq
$(window.parent.frames["FrameLeft"].document).find("#agentGroupList").removeClass().addClass("colo").siblings().removeClass();
jq 改变窗口时触发事件
$(window).resize(function () {
})
js 获取浏览器可视宽度
var windowHeight=document.documentElement.clientHeight;
var windowWidth=document.documentElement.clientWidth;
checkbox选中处理
- 博客分类:
- js jq
checkbox 选中后提交表单才有效----------------------------------------时隔3年才知道
HttpServletResponse response = this.getResponse();
response.setContentType("text/html;charset=utf-8");
PrintWriter out=response.getWriter();
LogUtil.info("显示查找的终端组"+result);
out.print(result);
return null;