- 博客(7)
- 资源 (1)
- 收藏
- 关注
原创 java之hashmap
最近看了HashMap相关的教学视频,生怕以后忘了, 所以赶紧把自己理解到的整理了一下,可能列的知识点还是比较乱,后续会慢慢优化完善, 一、特点: 无序、键值都可为空、键唯一、线程不安全 二、数据结构: jdk1.8之前:数组+链表 jdk1.8之后:数组+链表+红黑树 三、存储方式: 1、根据键的hashCode、数组长度以及某种算法计算出该数据在数组中存放的位置即索引; 2、如果该位置没有数据则直接插入,如果有数据再比较两个数据键的hashCode; 3、如果两个数据键的hashCode相同,此时发生哈
2021-03-09 16:34:00
179
原创 oracle之partition by
--创建临时表 temp with temp as( select '设备1' name, to_date('2020-01-01', 'yyyy-mm-dd') time, 26 value from dual union all select '设备1' name, to_date('2020-01-02', 'yyyy-mm-dd') time, 27 value from dual union all select '设备1' name, to_date('2020-01-03', 'yyyy-mm
2021-03-01 15:44:35
264
原创 oracle之行列互转
--行转列(行变少、列变多) with temp as( select '湖北省' nation ,'武汉市' city,'1' ranking from dual union all select '湖北省' nation ,'宜昌市' city,'2' ranking from dual union all select '湖北省' nation ,'襄阳市' city,'3' ranking from dual ) select nation, max(decode(ranking, '1', cit
2021-02-26 17:51:23
217
原创 mybatis中map作为参数和结果类型
xml: <select id="getData" resultType="map" parameterType="map"> select * from student where 1 = 1 <if test="name != null and name != ''"> and name like concat('%', #{name}, '%') </if> <if test="address != null and address != ''"&
2021-02-26 17:43:37
317
原创 tab页切换
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>tab页切换</title> <style> .tab { background: grey; overflow: auto; width: 240px; border-radius: 10px; } .tabStyle { width: 80px; h
2021-02-26 16:00:57
222
1
原创 java之jdbc
package com.ace.service; import java.sql.*; public class JDBCTest { public static void main(String[] args) { try { // 1、加载驱动类 Class.forName("com.mysql.jdbc.Driver"); // 2、获取连接对象 Connection connec
2021-02-26 11:22:41
195
原创 js代码块
/** * 使用正则获取问号传参的参数 * 示例:http://localhost:8080/index.jsp?a=1&b=2 * var a = getQueryString('a'); * var b = getQueryString('b'); */ function getQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = wi
2021-02-09 15:34:38
210
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人