`
念QC
  • 浏览: 8890 次
  • 性别: Icon_minigender_1
  • 来自: 西安
社区版块
存档分类
最新评论
文章列表

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 ...
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&q ...
在编写报表过程中,常常要对结果集分组操作,得到一些业务层需要的统计数据。这时候,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.creat ...
关于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_dept ...
今天可是被<textarea></textarea>悲剧了一回,<textarea>标签中的内容总是居 中显示。奇怪了,无论怎么设置style都不能解决,而且提交到form中去也是莫名其妙的多出很多空格来。几经折腾终于找到了原因 如果<textarea>标签写成如下形式: Html代码   < textarea >          内容内容      </ textarea >    浏览器会解析为   Html代码   ...
解决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 o ...
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 ...
打开终端   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/b ...
验证码无法显示: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 ...
Global site tag (gtag.js) - Google Analytics