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
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
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
2021-11-13 encryption and decryption, secondary, load_file&dnslog injection
Xiaodi v17
Encryption and decryption sqlilabs-page2-less21
You can see that the cookie has been base64 processed
Use error injection
')union select 1,count(*),concat((select table_name from information_schema.tables where table_schema=database() limit 0,1),floor(rand()*2))x from information_schema.tables group by x#
base64 encryption ...
Added by siwelis on Wed, 17 Nov 2021 13:11:45 +0200
Database index
Indexes
1.1 what does database index do?
Database index is actually to make data query faster /*Check the important things and say them three times*/
1.2 what are the database indexes?
1. Clustered index (primary key index). In the database, all rows will be sorted according to the primary key index 2. Non clustered index: index ordinary ...
Added by jcampbell1 on Fri, 12 Nov 2021 13:43:04 +0200
SQL written test for data analysis post of an Internet company
Hello, everyone. I'm Mr. Tony, who only talks about technology and doesn't cut his hair.
Recently, a friend shared that he participated in the internship interview of data analyst of an Internet (live delivery) company. The following is my analysis of relevant SQL test questions. The database used is MySQL 8.0.
If you find the article useful, ...
Added by johnbruce on Sun, 07 Nov 2021 22:43:46 +0200
MySQL -- stored procedures and stored functions
1. Stored procedures and stored functions
1. Stored procedure and stored function: MySQL provides the mechanism of stored procedure and stored function. Let's collectively call stored procedure and stored function stored programs. Unlike ordinary SQL statements, which need to be compiled first and then executed immediately, ...
Added by yuan22m on Fri, 05 Nov 2021 06:31:56 +0200
[MySQL and database] MySQL & database Chapter 11: process control structure
MySQL and database series article directory
Classification of process control structure
Classification:
Sequential structure: the program is executed from top to bottom;Branch structure: the program selects one of two or more paths to execute;Loop structure: the program repeatedly executes a piece of code on the basis of meeting ce ...
Added by therealchuckles on Fri, 29 Oct 2021 02:43:05 +0300
MySQL database foundation
preface
MySQL is a real multi-threaded and multi-user SQL database service. With its high performance, high reliability and easy to use characteristics, MySQL has become the most popular open source database system in the server field. Master the basic operation of MySQL database, which must be mastered in operation and maintenance service ...
Added by Defibber on Thu, 28 Oct 2021 11:21:41 +0300
Oracle 11g rebuild control files - all control files are lost, starting from scratch
Control file is a fairly small file (up to 64M), which contains a directory of other files required by Oracle. The parameter file tells the location of the instance control file, and the control file tells the location of the example database and the online redo log file. The control file also tells Oracle about other things, such as informatio ...
Added by Corvin on Thu, 28 Oct 2021 05:58:57 +0300