念QC的博客
念QC · 共 9 篇文章
oracle update select
1.update id set (a,b,c)=(select a,b,c from ida where ida.id=id.id); 2.update id t1 set a=(select t2.a from ida t2 where t1.id=t2.id),b=(select t2.b from ida t2 where t1.id=t2.id),c=(select t2.c from ida t2 where t1.id=t2.id) UPDATE tz_main SET (A,B,C)=(select A,B,C from tz_main where id=''xxxxxx) W…
2012-08-09 10:19 · oracle · 评论(0)
jQuery JSONP 跨域实践(转自:http://aijezdm915.iteye.com/blog/1066299)
jQuery JSONP 跨域实践 一客户端( url:http://192.168.1.2:81/jsonp_test.jsp ) 客户端页面首先在body 中放置一个div: <div id="res"></div> 将远程调用的数据写入该div中 <script type="text/javascript" src="/js/jquery-1.3.2.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $.ajax({ url:'http://192.168.9.5/jsonp_…
2012-08-08 14:24 · html · 评论(0)
oracle学习 3:rownum 的妙用,分组操作
在编写报表过程中,常常要对结果集分组操作,得到一些业务层需要的统计数据。这时候,rownum就能大显身手。 首先,我们可以对分组进行分别编号,如下: select t.dept_email, t.dept_name, t.create_date, row_number() over(partition by t.dept_email order by t.dept_name) rn from DEPTS t where 1 = 1 group by t.dept_email, t.dept_name, t.create_date having t.create_date <= to_date…
2012-08-04 18:08 · oracle · 评论(0)
关于oracle 去掉重复数据问题
关于Oracle去除重复数据: 1):Oracle的row_number() over函数消除重复的记录 例子:1.select d.id,d.outer_code from dict_depts_source d order by outer_code(查看重复数据) 2.select d.id,d.outer_code,row_number() over(partition by outer_code order by outer_code) row_flag from dict_depts_source d(标识重复数据) 3.delete from dict_depts_source…
2012-08-01 12:03 · oracle · 评论(0)
有关textarea标签莫名其妙的居中显示文本的问题
今天可是被<textarea></textarea>悲剧了一回,<textarea>标签中的内容总是居 中显示。奇怪了,无论怎么设置style都不能解决,而且提交到form中去也是莫名其妙的多出很多空格来。几经折腾终于找到了原因 如果<textarea>标签写成如下形式: Html代码 < textarea > 内容内容 </ textarea > 浏览器会解析为 Html代码 < textarea > < br > 内容内容 </ textarea > 所以在写<textarea>标签时一定要写成 Html代码 < textarea > 内容内容 </ textarea > 转载自:htt…
2012-07-26 09:59 · html · 评论(0)
解决illegal to have multiple occurrences of contentType with different values错误
解决illegal to have multiple occurrences of contentType with different values错误 今天写jsp程序,在一个文件中包含了另一个文件(checkPurview.jsp)来做权限验证,可执行候却出现执行错误: org.apache.jasper.JasperException: /admin/adminUser/../incs/checkPurview.jsp(1,1) Page directive: illegal to have multiple occurrences of contentType with diffe…
2012-07-20 16:31 · JAVA · 评论(0)
java.lang.OutOfMemoryError: PermGen space
PermGen space的全称是Permanent Generation space,是指内存的永久保存区域OutOfMemoryError: PermGen space从表面上看就是内存益出,解决方法也一定是加大内存。说说为什么会内存益出:这一部分用于存放Class和Meta的信息,Class在被 Load的时候被放入PermGen space区域,它和和存放Instance的Heap区域不同,GC(Garbage Collection)不会在主程序运行期对PermGen space进行清理,所以如果你的APP会LOAD很多CLASS的话,就很可能出现PermGen space错误。这种…
2012-07-20 11:55 · JAVA · 评论(0)
Linux下Tomcat的启动、关闭、杀死进程
打开终端 cd /java/tomcat #执行 bin/startup.sh #启动tomcat bin/shutdown.sh #停止tomcat tail -f logs/catalina.out #看tomcat的控制台输出; #看是否已经有tomcat在运行了 ps -ef |grep tomcat #如果有,用kill; kill -9 pid #pid 为相应的进程号 例如 ps -ef |grep tomcat 输出如下 sun 5144 1 0 10:21 pts/1 00:00:06 /java/jdk/bin/java -Djava.util.logging.manag…
2012-07-20 11:28 · linux · 评论(0)
linux下验证码失效
验证码无法显示:Could not initialize class sun.awt.X1 解决方案 网站验证码突然无法显示,并报如下错误。 Caused by: java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment Caused by: java.lang.InternalError: Can't connect to X11 window server using 'localhost:10.0' as the value of the DISPLAY varia…
2012-07-20 11:23 · tomcat · 评论(0)