ORACLE stored procedure

1 what is a stored procedure (a set of sql statements compiled in advance and stored in the database) 1.1 Stored Procedure In a large database system, a set of SQL statements to complete specific functions are stored in the database and called again after the first compilation. There is no need to compile again. The user calls the stored proc ...

Posted by oliverj777 on Mon, 27 Sep 2021 10:10:49 -0700

Mybatis environment construction and example

Current computer tool environment: IDEA, JDK1.8, Mysql5.0, Maven 3.6.1 Steps: 1. Create JAVA WEB project 2. Configure tomcat 3. Load the dependent jar package of mybatis, the dependent jar package of mysql, and the jar packages of junit and hamcrest core (as well as the jar package of log) required for configuration 4. Create a Resources f ...

Posted by EricTRocks on Fri, 24 Sep 2021 07:37:02 -0700

SQL 2008 - database creation and management

SQL Server 2008 database structure System database master A database that records all system level information of the SQL Server systemmsdbTemplate database for all user databases and tempdb databasemodelUsed by SQL Server agent to schedule alerts and jobstempGlobal resources available to all users connected to the SQL Server instance, save a ...

Posted by Robban on Thu, 23 Sep 2021 07:29:27 -0700

[Hard ClickHouse] ClickHouse Advanced Optimize ClickHouse Syntax Optimize Rules

This article is about Learning Guide for Big Data Specialists from Zero (Full Upgrade) ClickHouse: Partial supplement. 0 ClickHouse syntax optimization rules ClickHouse's SQL optimization rules are based on RBO(Rule Based Optimization). Here are some optimization rules 1 Prepare test tables 1) Upload official datasets Upload visits_v1.ta ...

Posted by nicandre on Wed, 22 Sep 2021 11:12:40 -0700

[5-2] database foundation

Database foundation Database: a collection that stores, maintains, and manages dataDataBase Management System (DBMS) Common database management system Oracle Relational type MySQL Relational type DB2 Microsoft SQL Server Three paradigms First normal form (1NF): no duplicate columns;The second normal form (2NF): attributes are complete ...

Posted by sandrob57 on Tue, 21 Sep 2021 16:14:57 -0700

Database and SQL language foundation (including detailed installation steps of MySQL compressed package environment)

1. Introduction to database Baidu's definition of database is: "database is" a warehouse for organizing, storing and managing data according to data structure ". It is a collection of large amounts of data stored in computers for a long time, organized, shareable and uniformly managed." In short, a database is a collec ...

Posted by rthconsultants on Tue, 21 Sep 2021 14:56:15 -0700

MySQL: a more complex query - Datawhale's third punch in note

SQL basics tutorial Statement: the content of this blog is sorted out from Datawhale's punch in learning, and sorted into notes according to the punch in content. For reprint, please contact Datawhale and my authorization, and the reprint source must be indicated. Chapter 3 more complex queries The first two punch in notes introduced th ...

Posted by MBK on Mon, 20 Sep 2021 07:02:17 -0700

Introduction to MySQL connection control plug-in

preface: Will MySQL restrict login when there are too many failures to connect to the database? How should the database server deal with violent cracking? This article introduces the connection control plug-in in MySQL. Let's learn the role of this plug-in. 1. Introduction to connection_control plug-in MySQL server contains a plug-in library ...

Posted by gregmiller on Mon, 20 Sep 2021 06:22:05 -0700

Is it a gimmick or a myth to develop local API s for external system calls without writing any WEB code?

First, let's simulate a business scenario. If we have such a master data table: In order to find the information of this master data, we let each field participate in the query:   The category is master data: Now you need to develop an API locally to call external systems. Transmission mode: POSTThe data format of request and res ...

Posted by busyguy78 on Sun, 19 Sep 2021 06:44:42 -0700

In depth analysis of the scenario where select and update are used simultaneously in a transaction in spike business code

1. Second kill code (most low implementation): //Open transaction @Transactional(rollbackFor = Exception.class) public BaseResponse<?> startSeckillWithLock(Long id, Long userId) { try { return seckill(id, userId); } catch (Exception e) { throw e; } finally { } } p ...

Posted by InfiniteA on Fri, 17 Sep 2021 09:25:07 -0700