转载自:http://blog.163.com/henry_hlh/blog/static/17039507420124211841298/Unix中的函数select和poll用来,支持Unix中I/O复用的功能,在Unix中I/O模型可以分为以一几种:(1)阻塞I/O(2)非阻塞I/O(3)I/...
分类:
系统相关 时间:
2014-05-17 14:59:21
阅读次数:
431
把下面页面封装名字为dbhelper.php 页面 1
封装dbhelper.php调用方法,增、删、查、改 数据库里表的数据1include("dbhelper.php");2 $r =
mysql_bind("select * from users where userName=? and pa...
分类:
数据库 时间:
2014-05-17 14:20:23
阅读次数:
313
sql请求发送到server端,需要经过解析器生成内部的数据结构对象,以方便进行优化和生成执行计划。解析器主要做了两件事情,词法分析和语法分析。词法和语法分析:mysql使用lex词法分析器,yacc语法分析器进行分析,最后保存到lex对象结构中。例如:
select id, name fr...
分类:
数据库 时间:
2014-05-16 02:57:33
阅读次数:
634
【题目】
Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find two lines, which together with x-axis forms a contain...
分类:
其他好文 时间:
2014-05-16 01:32:47
阅读次数:
406
案例1:查询表A数据,如果某个列(PARAM_VALUE)值太长,前台不好显示,就只取前20个字符;鼠标悬浮时再用层显示全部值;
sql写法:
select
m.PARAM_VALUE as PARAM_VALUE,
decode(sign(length(m.PARAM_VALUE)-20),1,CONCAT(SUBSTR(m.PARAM_VALUE,0,20),'...'),m.PARAM...
分类:
数据库 时间:
2014-05-15 23:53:08
阅读次数:
625
hello.ns-- 创建模块 Main 首字母大写module Main where--
导入可能用到的模块import System.Environment-- haskell 程序首先会执行 Main模块的 main action-- main
:: IO () 是type 声明, 这里可省略...
分类:
其他好文 时间:
2014-05-15 22:21:02
阅读次数:
334
String slctpsql="select id ,"+uid+","+ddd+","+score+",'"+mark+"' ,"+markid+" ,"+exam.getId()+" from Test_Paper where testBaseId=(select id from Test_Base where baseTestId="+judgemap.get(i).getId()+" a...
分类:
数据库 时间:
2014-05-15 20:36:45
阅读次数:
434
可以使用document.getElementByName()方法根据元素的name属性来获得元素。定义name属性的元素包括button、fieldset、input、keygen、output.select、textarea、form、iframe、object、map、meta、param。
getElementByName()获取的是具有相同name属性及值的集合,返回值类型是NodeL...
分类:
其他好文 时间:
2014-05-15 19:53:10
阅读次数:
255
Problem Description
At the entrance to the university, there is a huge rectangular billboard of size h*w (h is its height and w is its width). The board is the place where all possible announcement...
分类:
其他好文 时间:
2014-05-15 19:48:31
阅读次数:
348
jquery对select下拉框的操作总结。。。1、通过索引值去设置select中的option的value和textvarindex=1;varval="该改为的值";$("#selectIdoption:eq("+index+")").attr("selected",true);$("#selectIdoption:selected").val(val);$("#selectIdoption:selected").text(val);
分类:
Web程序 时间:
2014-05-15 19:00:51
阅读次数:
314