Experiment 5: trigger and stored procedure (function) - NPU

Experiment 5: triggers and stored procedures (functions)1. For SPJ_MNG database, create and execute the following stored procedures. (40 points in total)(1) Create a stored procedure without parameters - jsearch1. The function of this stored procedure is to return all information of Beijing suppliers in the S table when the stored procedure is ...

Added by jonaofarc on Mon, 22 Nov 2021 03:15:22 +0200

SEQUENCE Principle of TDDL in Distributed

Create a sequence table in the database to record the maximum id currently occupied. Each client host takes an id interval (for example, 1000-2000) to cache locally and updates the id maximum record in the sequence table. Client hosts take different id intervals, run out and retrieve, and use the optimistic locking mechanism to control concurre ...

Added by slushpuppie on Sun, 21 Nov 2021 19:35:41 +0200

Database Experiment 7 - view, index and data security

Experiment 7: view, index and data security 1, Experimental purpose 1. Master view characteristics; 2. Master the creation and management of views using SQL Server 2008; 3. Master the creation and management of indexes in object resource manager and T-SQL statements; 2, Experimental class hours 2 class hours 3, Experimental requirements 1 ...

Added by raku on Sun, 21 Nov 2021 06:00:10 +0200

ELK log analysis system

1.ELK log analysis 1.1 advantages and disadvantages of log server advantage Improve security Centralized storage of logs shortcoming Difficult analysis of logs 2. What is elk? The management tool for simplified log analysis is composed of Elasticsearch(ES), Logstash and Kibana. The official website is: https://www.elastic.co/products E ...

Added by lunny on Sat, 20 Nov 2021 17:46:35 +0200

Dynamic SQL for MyBatis

Dynamic SQL for MyBatis 1-if tag 1 - when querying - tag 1 It is often used to selectively update or insert the value of a field in update or insert Case: advanced query: only enter the user name for fuzzy query, only enter the mailbox for full matching query. Enter both for matching query <select id="selectByUserWhere" resultType="sys ...

Added by agisthos on Sat, 20 Nov 2021 16:26:59 +0200

Database programming of Node

Database programming of Node MySQL driver of node: MySQL 2 is an upgraded version of node's native MySQL driver. Installation Library: npm install mysql2. Establish connection Explicit connection: Import mysql2 module //Introduction module const mysql = require('mysql2') Call the createConnection method to create a connection object ...

Added by chevys on Sat, 20 Nov 2021 06:36:51 +0200

Android - page switching, Daniel will teach you

(4)singleInstance: an Activity stack will be created separately; 8. Optimization of program lock Put the variables created every time in the while loop outside the loop and create them only once //Before modification while(flag){ List<RunningTaskInfo> infos = am.getRunningTasks(1000); String packname = infos.get(0).topAct ...

Added by The_Walrus on Sat, 20 Nov 2021 04:34:50 +0200

MongoDB high availability replica set schema

1, MongoDB replica set The main significance of MongoDB replica set is to achieve high service availability, which is similar to the sentinel mode in Redis. 1. Copy set function It mainly provides two functions: 1. When the data is written to the Primary node, copy the data to another Secondary node; 2. When the primary node fails, a ne ...

Added by alex_savin on Sat, 20 Nov 2021 04:26:34 +0200

Summary of massive data processing calculation and algorithm implementation

This blog mainly explains the calculation and algorithm implementation of massive data processing, and understands the steps that can be taken by massive data processing methods Summary of massive data processing methods , understanding data processing problems can be moved step by step Summary of massive data processing problems Method review ...

Added by hash1 on Fri, 19 Nov 2021 19:08:04 +0200

Oracle part special writing method

Oracle special writing First n lines Use the ROWNUM keyword, the same as the limit in mysql#Get the first ten lines select * from table where ROWNUM<=10; Time field filtering The built-in to is required for comparing time in Oracle_ Date (STR, FMT) function#Filter results using two time parameters SELECT WELL_ID,SPUD_DATE FROM CD ...

Added by virgil on Fri, 19 Nov 2021 17:26:05 +0200