以前update用的不少,但都是简单的单表操作,没有在意,最近查阅多表关联更新及更新top n,发现update还真灵活,记录如下(在mssqlserver2008r2下测试通过):1单表操作update table1 set col1=val[,col2=val2...][where 条件表达式]...
分类:
数据库 时间:
2014-06-19 07:34:09
阅读次数:
264
1.官方网站下载:instantclient-basic-win32-11.2.0.1.0.zipinstantclient-sqlplus-win32-11.2.0.1.0.zipinstantclient-odbc-win32-11.2.0.1.0.zipinstantclient-jdbc-w...
分类:
数据库 时间:
2014-06-18 10:05:54
阅读次数:
218
SqlServer、Oracle、MySQL的连接,除了地址和驱动包不同,其他都一样的。 1 public String urlString="jdbc:sqlserver://localhost:1433;databaseName=crebas;"; 2 //"jdbc:m...
分类:
数据库 时间:
2014-06-18 08:18:02
阅读次数:
212
一.boost::thread的创建 1.线程创建方法一: boost::shared_ptr writeThread_; boost::function0 f = boost::bind(&DBTaskMgr::execute, this); writeThread_ = bo...
分类:
编程语言 时间:
2014-06-18 08:16:15
阅读次数:
283
tomcat
edit configurations配置问题:
在deployment选项卡内加入artifact到服务器,在Application context选择应用的上下文路径。
热部署:
在tomcat配置 Server选项卡内 On Update action 选择Update classes and resource
...
分类:
其他好文 时间:
2014-06-18 07:03:44
阅读次数:
231
MySQL中的内置系统函数 用在SELECCT语句, 能及子句 where order by having 中 UPDATE DELETE, 函数中可以将字段名作为变量来用,变量的值就是这个列对应的每一行记录一、字符串函数 php中用的函数,MySQl中大部也提供 1. CONCAT(S1,S...
分类:
数据库 时间:
2014-06-17 23:53:34
阅读次数:
419
创建有参存储函数findEmpNameAndSal(编号),查询7902号员工的的姓名和月薪,【返回多个值,演示out的用法】当返回2个或多个值,必须使用out符号当返回1个值,就无需out符号create or replace function findEmpNameAndSal(pempno i...
分类:
数据库 时间:
2014-06-17 23:34:01
阅读次数:
332
Class.forName("oracle.jdbc.OracleDriver");Stringurl="jdbc:oracle:thin:@localhost:1521:orcl";Class.forName("com.mysql.jdbc.Driver");jdbc:mysql://localhost:3306/databasename
分类:
数据库 时间:
2014-06-17 18:14:33
阅读次数:
289
HttpClient的撑持在HTTP/1.1标准中界说的一切的HTTP办法:GET,HEAD,POST,PUT,DELETE,TRACE和OPTIONS。每有一个办法都有一个对应的类:HttpGet,HttpHead,HttpPost,HttpPut,HttpDelete,HttpTrace和HttpOptions。一切的这些类均完成了HttpUriRequest接口,故可以作为execute..
分类:
其他好文 时间:
2014-06-17 17:03:44
阅读次数:
169
题目
Determine whether an integer is a palindrome. Do this without extra space.
Some hints:
Could negative integers be palindromes? (ie, -1)
If you are thinking of converting the integer to ...
分类:
其他好文 时间:
2014-06-17 16:12:39
阅读次数:
226