`
tainqinhot
  • 浏览: 19186 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表

first sp 小结

-- 按优先级高低,先按第2列升序,再按第1列升序。 select * from tb_union_broadcast order by 2,1 --可以通过查看已有的表的DDL,复制到命令窗口建立新表 --在命令窗口调用sp,带参数 call pro_××××(1246001312187796); --定义游标 declare cr_record cursor for(); --循环游标 cursor_loop:loop ...... end loop cursor_loop;    
PreparedStatement pstmt = null; Connection conn = null; ResultSet rs = null; try { Class.forName("com.mysql.jdbc.Driver").newInstance(); conn = DriverManager.getConnection("jdbc:mysql://" + ip + ":3306/" + dbname + "?useUnicode=true&charac ...
java中: -------------------------------------------------------- setMaxAge public void setMaxAge(int expiry) Sets the maximum age of the cookie in seconds. A positive value indicates that the cookie will expire after that many seconds have passed. Note that the value is the maximum age when the ...
Collection  ├List  │├LinkedList  │├ArrayList  │└Vector  │ └Stack  └Set   └ HashSet        (v)       无序不重复Map            ├Hashtable  ├HashMap            (k,v)└WeakHashMap 

java打包

    博客分类:
  • java
打包:jar  cvf  hello.jar  HelloWorld.class
java中写事物注意两点:    1:锁;sp和sql中一定要有锁(for update),否则并发情况下数据会错乱。    2:不能带commit; sp和sql中一定不能有commit,否则事务不能回滚,因为事物中的sp不会自动commit(dbc.setAutoCommit(false);),服从jdbc的connect。

过滤字符串

    博客分类:
  • java
//因为Set为无序不重复 private static final Set SET = new HashSet(); static { SET.add("***.**"); } //利用iterator,也可以用Set.contain()方法; for (Iterator iter = SET.iterator(); iter.hasNext();) { String element = (String) iter.next(); if(uri.indexOf(element) != -1){ ...
mod_proxyApache可以被配置为正向(forward)和反向(reverse)代理。正向代理是一个位于客户端和原始服务器(origin server)之间的服务器,为了从原始服务器取得内容,客户端向代理发送一个请求并指定目标(原始服务器),然后代理向原始服务器转交请求并将获得的内容返回给客户端。客户端必须要进行一些特别的设置才能使用正向代理。正向代理的典型用途是为在防火墙内的局域网客户端提供访问Internet的途径。正向代理还可以使用缓冲特性(由mod_cache提供)减少网络使用率。使用ProxyRequests指令即可激活正向代理。因为正向代理允许客户端通过它访问任意网站并且隐藏 ...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>title</title><meta http-equiv="Content-Type" conten ...
 在JAVA平台上开发应用程序的时候,有一个很大的特点就是其是在应用程序运行的时候才建立对象。换句话说,在程序运行的时候,才会最终确定对象的归属,即对象应该存储在什么地方。由于存储在不同的区域,其在性能上会 ...
  假设 obj 为某个 HTML 控件。 obj.offsetTop 指 obj 相对于版面或由 offsetParent 属性指定的父坐标的计算上侧位置,整型,单位像素。 obj.offsetLeft 指 obj 相对于版面或由 offsetParent 属性指定的父坐标的计算左侧位置,整型,单位像素。 obj.offsetWidth 指 obj 控件自身的绝对宽度,不包括因 overflow 而未显示的部分,也就是其实际占据的宽度,整型,单位像素。 obj.offsetHeight 指 obj 控件自身的绝对高度,不包括因 overflow 而未显示的部分,也就 ...
  版本控制比较普遍的 3 种命名格式 :一、GNU 风格的版本号命名格式 :主版本号 . 子版本号 [. 修正版本号 [. 编译版本号 ]]Major_Version_Number.Minor_Version_Number[.Revision_Number[.Build_Number]]示例 : 1.2.1, 2.0, 5.0.0 build-13124二、Windows 风格的版本号命名格式 :主版本号 . 子版本号 [ 修正版本号 [. 编译版本号 ]]Major_Version_Number.Minor_Version_Number[Revision_Number[.Build_N ...
Global site tag (gtag.js) - Google Analytics