2021-10-01 MyBatis time type updated to null exception: SQLServerException: implicit conversion from data type varbinary to date is not allowed

Requirements: Requirement: update a Date type field in the SQL Server library table to null Environmental Science: SQL Server Version: Microsoft SQL Server 2016 (SP2-CU17) (KB5001092) - 13.0.5888.11 (X64) Mar 19 2021 19:41:38 Copyright (c) Microsoft Corporation Enterprise Edition: Core-based Licensing (64-bit) on Windows Server 2016 Dat ...

Added by perry789 on Sat, 02 Oct 2021 03:15:19 +0300

MyBatis if tag: conditional judgment

MyBatis if is similar to the if statement in Java. It is the most commonly used judgment statement in MyBatis. Using the if tag can save a lot of work in splicing SQL and focus on the maintenance of XML. The if statement is simple to use and is often used in combination with the test attribute. The syntax is as follows. When the judgment con ...

Added by elpaisa on Mon, 27 Sep 2021 22:54:39 +0300

MyBatis special operation, optimized configuration, dynamic SQL, association query

1. Special operation 1.1 fuzzy query Requirement: query the data containing "fine" in name, and arrange it in descending order by age @Test public void test9(){ SqlSession sqlSession = sqlSessionFactory.openSession(true); DemoUserMapper mapper = sqlSession.getMapper(DemoUserMapper.class); Map<String,O ...

Added by cemeteryridge on Sun, 26 Sep 2021 11:00:00 +0300

Mybatis mapping file learning summary

        Mybatis has been a professional course in the school for three weeks, and one and a half of them have been studying mapping files. First of all, thank teacher Anna for her guidance. Her teaching is very serious and responsible, and the content is also very rich. However, due to the many and miscellaneous mapping con ...

Added by avickers on Thu, 23 Sep 2021 11:08:55 +0300

On Mybatis paging

1, Bicycles Sometimes we may use our own business code to find out a List, and then use sublist for manual paging. Manual paging can make it clear how to use the subList method of List, but this is very desirable. If the return value is too large, the memory is easy to be ruthlessly burst. import dao.TestMapper; import entity.TestEntity; imp ...

Added by langemarkdesign on Wed, 22 Sep 2021 01:21:39 +0300

Mybatis - Basics

Mybatis - Basics ⭐ sketch Mybatis – MyBatis 3 | introduction - official address You can learn from the official address, and most of the content of this article is also quoted here 1 what is mybatis A persistence layer framework, which is also a semi ORM (semi automated) framework, encapsulates JDBC code at the bottom, so that p ...

Added by The Wise One on Sun, 19 Sep 2021 09:11:10 +0300

The Maven project created by IDEA uses the Mybatis framework to simply add, delete, modify and query a single table

Build environment Build database table MySQL database is used. Create a new database named task and a new table named student in the task database. Add data to the table as appropriate. The SQL statements for creating tables and adding data are as follows. SET FOREIGN_KEY_CHECKS=0; --Create table DROP TABLE IF EXISTS `student`; CREATE TABLE ...

Added by Desdinova on Fri, 17 Sep 2021 17:00:56 +0300

Getting started with MyBatis for Java

First, you know what a framework is:          Framework is the reusable design of the whole or part of the system, which is expressed as a group of abstract components and the method of interaction between component instances; Another definition holds that a framework is an application skeleton that can ...

Added by scross on Wed, 15 Sep 2021 02:23:51 +0300

clickhouse preliminary cognition

1, Introduction 1.1 what is a clickhouse ClickHouse is a columnar database management system (DBMS) for on-line analysis (OLAP). In the traditional line database system, data is stored in the following order: Data in the same row is always physically stored together. Common line database systems include MySQL, Postgres and MS SQL Server. ...

Added by ycoleman on Fri, 10 Sep 2021 07:03:58 +0300

After using MybatisPlus, I haven't written sql for a long time

(1) Preface When you first wrote JDBC, you needed to manually configure connection information by writing SQL statements one by one. Then Mybatis appeared, no more manual configuration of connection information was needed, and the SQL statements were isolated from the code, but Sql was unavoidable. Then Mybatis Plus appeared, which did not eve ...

Added by $kevan on Thu, 09 Sep 2021 00:57:02 +0300