摘要: 1、JDBC.java package com.ace.service; import java.sql.*; public class JDBC { public static void main(String[] args) { try { // 1、加载驱动类 Class.forName("c 阅读全文
posted @ 2021-03-03 11:11 艾葵茵 阅读(75) 评论(0) 推荐(0)
摘要: xml: <select id="getData" resultType="map" parameterType="map"> select * from student where 1 = 1 <if test="name != null and name != ''"> and name lik 阅读全文
posted @ 2021-03-03 11:03 艾葵茵 阅读(410) 评论(0) 推荐(0)
摘要: --创建临时表 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- 阅读全文
posted @ 2021-03-03 10:59 艾葵茵 阅读(266) 评论(0) 推荐(0)
摘要: /** * 使用正则获取问号传参的参数 * 示例:http://localhost:8080/index.jsp?a=1&b=2 * var a = getQueryString('a'); * var b = getQueryString('b'); */ function getQueryStr 阅读全文
posted @ 2021-03-03 10:55 艾葵茵 阅读(99) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>tab页切换</title> <style> .tab { background: grey; overflow: auto; width: 240px; bo 阅读全文
posted @ 2021-03-03 10:16 艾葵茵 阅读(1645) 评论(0) 推荐(0)
摘要: 1、行转列(行变少、列变多) --创建临时表 temp with temp as( select '湖北省' nation, '武汉市' city, 'FIRST' rank from dual union all select '湖北省' nation, '宜昌市' city, 'SECOND' 阅读全文
posted @ 2021-03-03 10:07 艾葵茵 阅读(67) 评论(0) 推荐(0)