Easter79 Easter79
3年前
springboot模糊查询
在学习MyBatis过程中想实现模糊查询,可惜失败了。后来上百度上查了一下,算是解决了。记录一下MyBatis实现模糊查询的几种方式。  数据库表名为test\_student,初始化了几条记录,如图:  !数据库表内容(https://oscimg.oschina.net/oscnet/29429857a651e58b6de1593a923
Kent_Sun Kent_Sun
4年前
hibernate模糊查询
修改Restrictions.like(属性名,查询条件的值,匹配方式)eq修改为like,字段加上百分号字符串
Stella981 Stella981
3年前
Spring Data + Thymeleaf 3 + Bootstrap 4 实现分页器
原文同步至https://waylau.com/springdatathymeleafbootstrappaginator(https://www.oschina.net/action/GoToLink?urlhttps%3A%2F%2Fwaylau.com%2Fspringdatathymeleafbootstrappaginator
Stella981 Stella981
3年前
Centos7二进制安装Mysql8.0.14
准备工作下载mysql二进制包,以及安装mysql依赖包安装mysql所需依赖包yuminstalllibaioy下载mysql二进制安装包wgethttp://mirrors.163.com/mysql/Downloads/MySQL8.0/mysql8.0.14linuxglibc2.
Wesley13 Wesley13
3年前
MyBatis学习总结(11)——MyBatis动态Sql语句
MyBatis中对数据库的操作,有时要带一些条件,因此动态SQL语句非常有必要,下面就主要来讲讲几个常用的动态SQL语句的语法MyBatis中用于实现动态SQL的元素主要有:ifchoose(when,otherwise)trimwhereset
Stella981 Stella981
3年前
MongoDB+Spring
Java端要向mongoDB插入java对象时,我用了到morphia开源组件。官网:code.google.com/p/morphia 只写了DAO层的java代码,能够满足常用的增、删、改、查、分页等操作。db.properties配置文件: db.hostlocalhost //主机地址 db.port27017      //端
Wesley13 Wesley13
3年前
oracle树状查询
connectby是结构化查询中用到的,其基本语法是:select...fromtablenamestartwith条件1connectby条件2where条件3;例:select\fromtablestartwithorg\_id'HBHqfWGWPy'conne
Stella981 Stella981
3年前
Hibernate的批量处理和分页技术、投影技术
投影查询——过滤部分字段返回的List集合元素为Object\\Queryquerysession.createQuery("selectc.cname,c.csexfromCustomerc");Listlistquery.list();Iteratoriterlist.itera
Wesley13 Wesley13
3年前
mysql——定义——存储过程和函数——概念
存储过程和函数是指将经常使用的一组SQL语句组合在一起,并将这些SQL语句当作一个整体存储在服务器中一、创建存储过程语法格式:createproceduresp_name(proc_parameter……)ch
Wesley13 Wesley13
3年前
mongoDB 分组查询
1、准备数据!(https://oscimg.oschina.net/oscnet/be8ab9c51df7b9b08a750f0c939aad042ab.jpg)!(https://oscimg.oschina.net/oscnet/0d21cfff555ec56e174daedf3b358b3a072.jpg)fr