Three Ways of Laravel 5 Operating Database
1. DB facade (original lookup)
// query
$objectArray=DB::select('select * from student');
foreach ($objectArray as $obj){
echo $obj->id;
}
// insert
$bool=DB::insert('insert into student(name,age) values(?,?)',['tom',18]);
// modify
$num=DB::update('update student se ...
Posted by jboy6t9 on Mon, 30 Sep 2019 01:06:13 -0700
Install oracle 11g using Docker
2019-07-30
0
0
1. Introduction
Oracle Database, also known as Oracle RDBMS, or Oracle for short.Oracle is a relational database management system.
With docker, it is no longer difficult to install oracle, just a few steps.
It is important to note that before referring to this article, you need to have a foundation for wo ...
Posted by Xoom3r on Sat, 28 Sep 2019 11:02:39 -0700
Some Front and Background Knowledge and Application of Paging
We know that the data displayed in the front desk usually conveys information encapsulated by some list s, but in the face of a large number of data, it is impossible to display on one page.
We need to paginate. In order to form a good interface, data and pages need to be processed and interacted in front of and behind the scenes.
Starting wi ...
Posted by Jeannie109 on Thu, 26 Sep 2019 07:44:29 -0700
How many steps does it take to move from the symfony framework to a complete project? Dependency injection and reflection
Preface
For PHP frameworks, whether it's yii, symfony or laravel, everyone is involved in their work. For the resource bundles vendor folders, entry files (index.php or app.php) stored in the framework, people also meet with them every day. But are you really familiar with these files/folders? How does a complete project evolve from a pure fram ...
Posted by broheem on Tue, 24 Sep 2019 00:04:32 -0700
Database Storage
Database Storage
1 Store data using Shared Preferences
Scope of application: save a small amount of data, and the format of these data is very simple: string type, basic type of value. For example, application configuration information (such as whether to turn on sound effects, whether to use vibrat ...
Posted by CrimsonSoul on Mon, 23 Sep 2019 03:49:55 -0700
MyBatis-X injects base CRUD, one-to-one, one-to-many join table query methods through custom annotation
Background
The advantages of MyBatis-X persistent layer architecture are simple configuration, flexible one-to-one, one-to-many join table queries. After a join table query configuration, when the related tables have added, changed or subtracted fields, the join table query does not need to be modif ...
Posted by pfdesigns on Sun, 22 Sep 2019 19:16:26 -0700
java reflection knowledge
reflex
Article directory
reflex
Summary
Definition
purpose
Relevant Classes of Reflection Mechanisms
Class Class
Class Field
Class Method
Constructor class
1. Several Ways to Get Class Objects
Student object
Several Methods of Obtaining Class Objects
2. Get the construction method and use it
3. ...
Posted by wmguk on Sun, 22 Sep 2019 04:16:45 -0700
Introduction to Druid (Spring Boot + Mybatis + Druid Data Source [Official start]
Introduction to Druid
Druid is a very good database connection pool. In terms of function, performance and extensibility, it surpasses other database connection pools, including DBCP, C3P0, BoneCP, Proxool and JBoss Data Source.
Druid has deployed more than 600 applications in Alibaba, after more than a year of rigorous deployment of large-scal ...
Posted by redarrow on Sat, 21 Sep 2019 03:00:02 -0700
Chapter XVI. Primary Knowledge Database
Catalog
Chapter XVI. Primary Knowledge Database
I. Database
II. Composition of database
Classification of databases
IV. Unloading database
5. Installation of databases
6. Connecting database
7. Viewing User Information
8. Basic operation of database
9. Basic ope ...
Posted by Akinraze on Fri, 20 Sep 2019 05:44:01 -0700
SpringBoot Integrated Druid Monitoring Data Source
Introduction to Druid
Druid is a project on Alibaba Open Source Platform. The whole project is composed of database connection pool, plug-in framework and SQL parser. The main purpose of this project is to extend some limitations of JDBC and enable programmers to achieve some special requirements, such as requesting credentials from key servic ...
Posted by T.Stedel on Thu, 19 Sep 2019 05:00:43 -0700