MySQL -- basic database operation (2)

– preparation before database operation – create database – create database python_test_1 charset=utf8; – using databases – use python_test_1; – students table – create table students( – id int unsigned primary key auto_increment not null, – name varchar(20) default ", – age tinyint ...

Posted by ksteuber on Wed, 18 Mar 2020 09:11:11 -0700

JDBC for transaction management

JDBC for transaction management There are four characteristics of a transaction:Atomicity: refers to that the operations contained in a transaction are regarded as a logical unitConsistency: the database is in a consistent state before and after the startIsolation: multiple transactions modified to the database are isolated from each otherThe i ...

Posted by Mark Baker on Wed, 18 Mar 2020 08:30:03 -0700

CAS single sign on -- custom authentication login strategy

In the previous section, we used a variety of authentication methods of CAS to complete the login authentication in a variety of ways, that is, we mainly used a variety of authentication schemes encapsulated by CAS for us, which can basically meet our multiple needs of authentication. If you still don't know a lot about the multiple authenticat ...

Posted by BlueMeteor on Wed, 18 Mar 2020 06:15:25 -0700

Default values in dogma

How to set the default value in doctrine2? #1 building <?php /** * @Entity */ class myEntity { /** * @var string * * @ORM\Column(name="myColumn", type="integer", options={"default" : 0}) */ private $myColumn; ... } Note that this uses SQL DEFAULT, which is not supported for some fields, such as BLOB ...

Posted by rami103 on Tue, 17 Mar 2020 07:45:49 -0700

Mysql database 2: a simple DQL statement

1. Simple query statement (DQL) Syntax format: select field name 1, field name 2, field name 3 from table name; mysql> select ename,empno from emp; +--------+-------+ | ename | empno | +--------+-------+ | SMITH | 7369 | | ALLEN | 7499 | | WARD | 7521 | | JONES | 7566 | | MARTIN ...

Posted by MortimerJazz on Mon, 16 Mar 2020 08:28:17 -0700

Note: SQL leakage

HAVING statement The reason for adding the HAVING clause in SQL is that the WHERE keyword cannot be used with aggregate functions. The HAVING clause allows us to filter the grouped groups of data. SELECT release_year FROM films GROUP BY release_year HAVING COUNT(title) > 200; USING statement Con ...

Posted by Zomie on Mon, 16 Mar 2020 05:24:36 -0700

Basic details of MySQL (the essence of writing sql statements is English translation + mathematical logic!)

MySQL introduction /* MySQL database management system (file management system in essence) Advantages over ordinary files: 1. Easy to manage data; 2. Suitable for complex multi-threaded operations In MySQL: database database (essentially folder) Create database: name of create database; Display dat ...

Posted by adt2007 on Sun, 15 Mar 2020 03:56:00 -0700

Cs231n Assignment 1 SVM of in-depth learning series

Write at the beginning: Finally I copied the svm job of the big guys again. It's up to me to copy it. I'll attach a link to the big guys who talked better to me in the response location. Thank them. Recently, facing the pressure of finding an internship, this employment is still very high, what can I d ...

Posted by cornelombaard on Fri, 13 Mar 2020 18:51:52 -0700

Understanding Java persistence framework under Mybatis (connection pooling, caching, and annotation development)

Preface It's recommended that you read this article first (above Mybatis, the Java persistence framework for first time) Click to visit 9. Mybatis Connection Pool and Transaction Depth 1. Connection Pool Technology for Mybatis Connection pooling technology in MBatis uses its own connection pooli ...

Posted by Dave3765 on Fri, 13 Mar 2020 18:28:19 -0700

[Typical Example] 50 exercises for MySQL database SQL statements

Basic operations and advanced exercises for SQL Reference resources: https://blog.csdn.net/Fenggms/article/details/83034175 There are now two tables, one for departments and the other for employees, whose table structure is as follows: Step 1: Create a test database, command: create database test; The second step is to build the table: emp ...

Posted by limke on Thu, 12 Mar 2020 09:57:53 -0700