MyBatis from Shallow to Deep (Practice) - 2

MyBatis Develops DAO(Data Access Object) Two ideas: Original Dao Development Method (Writing Dao Interface and Interface Implementation Class DaoImpl, respectively) With MyBatis, proxy development using mapper interface (equivalent to Dao interface) Expected function Implementing CRUD of Single Table with Dao Interface Example program Primi ...

Posted by terryl on Mon, 27 May 2019 00:53:58 +0200

JOIN of MySQL (1): Usage

JOIN, like the English word "join", connects two tables, roughly divided into internal connection, external connection, right connection, left connection and natural connection. This description first throws out a rotten graph and then inserts the test data. CREATE TABLE t_blog( id INT PRIMARY KEY AUTO_INCREMENT, ...

Posted by haddydaddy on Mon, 27 May 2019 00:22:53 +0200

Spring boot (6) - unit testing

Personal accumulation, please do not reproduce privately, please contact before reproducing Code and article resources https://github.com/jedyang/DayDayUp/tree/master/java/springboot Reading notes based on Spring Book CookBook focus on personal understanding and practice rather than translation. test For a comprehensive analysis of unit tes ...

Posted by Kiubbo on Mon, 27 May 2019 00:21:34 +0200

How to create and update an android-SQLite database, add, delete, and change its usage

Introduction to SQLite 1. Introduction Android embedded relational database - SQLite.SQLite is a lightweight relational database. It is fast, takes little resources and usually only needs a few hundred K s of memory, making it especially suitable for use on mobile devices.SQLite supports standard SQL syntax and follows database ACID tran ...

Posted by xoligy on Sun, 26 May 2019 19:23:42 +0200

Detailed explanation of addition, deletion and modification of sqlite

Add, delete and modify the source code: myHelper.java package com.example.sqlite3lianxi; import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteDatabase.CursorFactory; import android.database.sqlite.SQLiteOpenHelper; public class myHelper extends SQLiteOpenHelper { /* ...

Posted by markszy on Sat, 25 May 2019 01:39:01 +0200

p6spy displays complete executable SQL

Previous projects used mybtis to do ORM, it has its own SQL output, or third-party plug-ins are very good output display execution of the SQL and results. You can even use mybtis's interceptor to customize the output of formatted SQL. The project is currently developed using hibernate 3. Projects are also relatively old... The SQL statements di ...

Posted by Lee W on Fri, 24 May 2019 01:14:52 +0200

Multiple Table Operation of SQL Statements

Before talking about multi-table queries, make a requirement that is not related to multi-table queries. Suppose you have such a column of IDS in Table B +------+ | id | +------+ | 1 | | 2 | | 1 | | 3 | | 4 | | 5 | +------+ Please indicate the serial number for the id column according to the query in table B and displa ...

Posted by moboter on Thu, 23 May 2019 02:46:21 +0200

Wpf Excel Import and Export Data

Turn: http://blog.csdn.net/sanjiawan/article/details/6818921 Microsoft's import and export methods are basically the same whether they are asp.net, winform, or wpf. It's all about instantiating Excel classes, creating workbooks, creating worksheets, and then saving or extracting data. So easy to operate that feeling has become a matter of cou ...

Posted by jacobelias on Thu, 23 May 2019 00:23:56 +0200

DBCP: One of the Open Source Data Sources

What are the advantages of using connection pools over our usual JDBC code? 1. Resource reuseBecause of the reuse of database connections, frequent creation is avoided and a large amount of performance overhead caused by connections is released. On the other hand, it also increases the stability of system operation environment on the basis of ...

Posted by nascarjunky on Wed, 22 May 2019 22:58:54 +0200

MySQL Introduction Basic Grammar 1

I. Basic Use of MySQL 1.1 Basic operations on the command line Mysql-u username-p carriage return Enter password: xxx Enter the database (All commands in mysql end with a semicolon and enter help; query all mysql commands) 1.2 MySQL directory structure bin: All executable files exe File of MySQL InstanceConf ...

Posted by bruce080 on Wed, 22 May 2019 20:15:30 +0200