js 获取 <% %>中定义的变量值
<% String path = request.getContextPath(); %>
$(function(){
var path = "<%=path %>";
})
oracle 给表中的字段添加唯一索引
create unique index 索引名称(index_id ) on 表名(字段);
mybatis 批量添加数据 dao层传入参数 list<object>
SQL:
<insert id =" insertID" parameterType="java.util.List">
iinsert into tableName ( 字段 ,字段, 字段)
<foreach collection = "list" item = "item" separator = "union all">
select
#{item.字段},
#{item.字段},
#{item.字段}
from dual
</foreach>
如果连了VPN ,访问受限或者你的ip无法访问你的本机时,需要断开网络,并刷新DNS 缓存,命令:ipconfig/flushdns
oracle for循环插入
begin
for i in 1 .. 1oo
loop
insert into table (字段) values(sys_guid());
end loop;
end;
oracle 在一个用户名下授权别的用户名访问某些表的权限
grant select on 用户名.表名 to 用户名
oracle 12c 中 wm.concat 抛弃了,替代者是 listagg(字段,“以什么方式拼接,比如逗号”)within group(order by 字段)