用户拥有的role权限在存储过程是不可用的。遇到这种情况,我们一般需要显式授权,如grant create table to usera;但这种方法太麻烦,有时候可能需要进行非常多的授权才能执行存储过程,实际上,oracle给我们提供了在存储过程中使用role权限的方法:修改存储过程,加入Authi Read More
posted @ 2017-10-11 15:29 人云慧 Views(904) Comments(0) Diggs(0)
--常用日期函数 1、Sysdate 当前日期和时间 Select sysdate from dual; 2、Add_months(d,n) 当前日期d后推n个月 用于从一个日期值增加或减少一些月份 当前日期后两个月: Select add_months(sysdate,2) from dual; Read More
posted @ 2017-10-11 15:12 人云慧 Views(3887) Comments(0) Diggs(0)
问题:当使用ajax向后台传递数组或者json数据时,在后台使用 request.getParameter获取参数时为 null 解决办法:设置ajax的 traditional属性为true,默认为false 引申:jQuery需要调用jQuery.param序列化参数,jQuery.param( Read More
posted @ 2017-09-21 16:18 人云慧 Views(1820) Comments(0) Diggs(1)
1.location.href self.location.href: window.location.href='url':重定向页面并刷新,而window.open('url')只表示打开页面,并不刷新 this.location.href: location.href:以上四种都为本页面跳转 Read More
posted @ 2015-10-27 21:56 人云慧 Views(286) Comments(0) Diggs(0)