MySQL Study Notes _ 8_ SQL BASIC Language review, Study Notes _ 8_ SQL SQL language basic review
I. Overview
SQL statement comments
1) All contents starting with "#" until the end of the line are comments
2) All content starting with "--" (-- and then a space) until the end
Tags: database pl-sqlDatabase Review CH10 PL/SQL 10.1 PL/SQL IntroductionPL /SQL is the process of Oracle's expansion of the procedure for the implementation of a program of SQL-related procedures, and can be stored procedures and functions to allow a section of
Database Review CH4 SQLSQL (structured query Language, Structured Query language) is a common relational database system operation language, the following from several aspects to review the SQL Foundation4.1 DDLSQL statements can be divided into three categories depending on the nature of their operations:
DDL (Data Definition Language)
DCL (Data Con
As a database administrator for billing applications (DBA), the company's chief information Officer (CIO) often invites me to meet with Sarbanes-oxley reviewers to discuss the security and consolidation of corporate data. Simply put, he wants us to answer a number of questions through the right documents: who has access to our data, how to authorize access, and how we monitor access to prevent someone from invading, logging into data, or doing something they shouldn't.
My CIO and I have learned
Label:Some tools used for a long time or have new tools appear, slowly forgotten a lot, they become unfamiliar from the familiar, of course, it is not good for us. Today, let's review the basic class library of the MS that is used by ADO, first on the code (standard SQL Server Operations) 1) A basic approach to insert encapsulation Using System;Using System.Collections;Using System.Text; Using Sy
Mysql SQL Statement Review 2 -- Regular Expressions and mysql Regular Expressions
Here, we will briefly review the usage of Regular Expressions in mysql when filtering data. This mainly refers to an example for each usage or a brief description.
The REGEXP keyword is used to filter data using regular expressions.
Basic character match:
SELECT prod_name FROM prod
Review the three basic paradigms of SQL Design 1. The first paradigm (ensuring that each column remains atomic) The first paradigm is the most basic paradigm. If all the field values in the database table are unrecoverable Atomic values, it indicates that the database table meets the first paradigm. The rational compliance of the first paradigm needs to be determined based on the actual needs of the system.
can be continued, and the result of the error is naturally not available.Conclusion: It is strongly recommended to use ANSI SQL-92 notation, which makes the data not inconsistent, while readability and maintainability are stronger than ANSI SQL-89.SummarizeIn this section we talk about cross joins and internal joins, as well as the areas where we need to be aware, and this section concludes with the follow
Tags: match upd from update var har alt update nbspRecent review of SQL, found a lot of things have been forgotten, good memory is not as bad as the written wisdom,SQL: Structured queries language (structed query language)1. Create a database CREATE DATABASE my_data_base; 2. Use the library you just created use my_data_base; 3. Create a table named teacher CREAT
, and another Orders table that records all the customer's orders. One of the limitations here is that all the customers in the order information must be in the Customer table. Here, we will set a foreign key in the ORDERS table, and this foreign key is the primary key in the CUSTOMER table. In this way, we can determine that all customers in the ORDERS table exist in the Customer table. In other words, there cannot be any customer in the Orders table that does not exist in the Customer table.11
Label:1. Top10sql "with the most execution times"DB2 "SELECT * from Sysibmadm.snapdyn_sql ORDER BY num_executions DESC FETCH first ten rows only"2, the average execution time the longest Top10sql "DB2 "SELECT * from Sysibmadm.top_dynamic_sql ORDER BY average_execution_time_s DESC FETCH first ten rows only"3, the most ranked Top10sql "DB2 "SELECT * from Sysibmadm.snapdyn_sql ORDER BY stmt_sorts DESC FETCH first ten rows only"Executed using the instance user.Find
Review SQL Server differential backup
Review SQL server differential backup
MSSQL differential backup is compared with the previous backup to back up different content. In this way, as long as new content is inserted after the previous backup, differential backup can back up the newly inserted content, and this backup
Evergrande mighty! Some basic knowledge about SQL review bitsCN.com
First, Evergrande Weiwu!
Start.
Relational algebra:
Currently, mainstream relational databases are built on relational algebra, that is, their mathematical support is relational algebra.
Relational algebra mainly includes the following binary operations: union, intersection, difference, and Cartesian Product.
It should be noted that Cartesi
,drop,insert,update,delete,select on MYDB1. * to user1;
Grant All on MYDB1,* to User2 5.3 Revocation of authorization Syntax: Revoke permissions 1, permissions 2 ... on database. * Form User Name REVOKE CREATE,ALTER,DROP on MYDB1. * from User1@localhost; 5.4 Viewing user rights Syntax: Show grant for user name for User1@localhost; 5.5 Deleting a user Syntax: Drop user username DROP USER user1@localhost; 5.6 Modifying user passwords Grammar: Use MySQL; UPDATE user SET Password=password ('
created. However, you can create a primary key to flexibly implement index search, table variables are not only operated in the memory, but also in tempdb when the data volume is large, that is, the I/O operation of the physical disk. 2. Transaction rollback is invalid for table variables (no statistical information for the reason)Generally, the temporary result set needs to be associated with other tables with a large data volume. The temporary table has a small amount of data, and the tempora
|3000Match one of several characters:SELECT Prod_name from Products WHERE prod_name REGEXP ' [123] Ton ';[] The enclosed part represents a match for one of the 1 ton, 2 ton suchMatch range:SELECT Prod_name from Products WHERE prod_name REGEXP ' [1-9] Ton ';If the characters in the previous example [] are longer and are arrays, and the numbers are contiguous, they can be changed to a range match, so that the SQL statement will be a little shorter, of c
procedures to recompile, cannot build indexes and statistics, but can establish a primary key, to adapt to the index lookup, table variables not only in memory operation, the large amount of data will also write tempdb, that is, physical disk IO operation. 2. Transaction rollback is not valid for table variables (reason no statistics)
In general, a large amount of data, the temporary result set needs and other table two times association with the small amount of temporary table data, separate o
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.