MySQL database design specification 1, the database naming specification uses 26 English letters (case-sensitive) and 0-9 natural number (often do not need) with underscore ' _ ' composition; The name is concise and clear (the length cannot
First, select query clauses use and considerations:1.whereThe where heel condition is used to filter the rows we need. You can follow the operator after it has =,! =, , =, in, like (can be combined with wildcard%, the effect will be better), Between.
1, do not use "SELECT *" in the query to retrieve unnecessary columns will bring additional overhead, there is a sentence called "the province of the province";2. Avoid unnecessary columns in the select list and avoid unnecessary tables in the
Concrete Example 1. PHP Server ComponentsFor beginners, it is recommended to use the integrated server component, which already includes PHP, Apache, Mysql and other services, eliminating the time spent by developers in the tedious configuration
Use of the CONTAINS function in Oracle 1. Find a student's address in BeijingSELECT Student_id,student_name from Students WHERE CONTAINS ' Beijing ' )Remark:beijing is a word that is enclosed in single quotation marks.2. Check the student's address
Microsoft's SQL Server provides two types of indexes: Clustered indexes (clustered index, also called clustered indexes, clustered indexes), and nonclustered indexes (nonclustered index, also called nonclustered indexes, non-clustered indexes) ...(a)
PrefaceSome of the feedback before several articles too theoretical lack of practical details, this article on more operability of the content bar.Note: This article is based on the background of MySQL, many of which are applicable to other
Database environment
Dev: Development environment, development of read-write, can modify table structure. Developers can modify the table structure and can modify the data at will, but need to ensure that other development colleagues are
add: Insert RecordCREATE Table Employee_new (ID INT PRIMARY KEY auto_increment,Name VARCHAR () is not NULL UNIQUE,Birthday VARCHAR (20),Salary FLOAT (7,2)) CHARACTER SET UTF8;INSERT into Employee_new (name, birthday, salary) VALUES (' Yuan ', ' 1990-
MySQL Utility commands(1), starting from the No. 0 row, take 3 linesSELECT * FROM student limit 0,3(2), view current database encodingShow variables like ' character_set_database ';(3), modify the database code (XXX is the database name)ALTER
PrefaceSome of the feedback before several articles too theoretical lack of practical details, this article on more operability of the content bar.Note: This article is based on the background of MySQL, many of which are applicable to other
In SQL Server, COUNT (*) or COUNT (1) or count ([column]) may be the most commonly used aggregate function. A lot of people actually have a clear distinction between the three. This article will describe the roles, relationships, and principles
Create and use a database
To view the database on the server:SHOW DATABASES;
To create a database:CREATE DATABASE ;
Indicate what database to use:USE
Create and use a table
To create a table:CREATE TABLE ( ,...);
This morning, I spit up the Oracle SQL performance optimization of the 40 military, many of the rules are also applicable to MySQL, the results of this evening found this article-the exhaustion of the power of the MySQL database compiled 32 rules ,
Document-oriented NoSQL database mainly solves the problem is not high-performance concurrent read-write, but to ensure the massive data storage at the same time, with good query performance.conditional operator<, = This operator does not have to
Reprint: http://wulijun.github.io/2012/08/24/mysql-sql-optimization.html
Optimize your Goals
Reducing IO times IO is always the most vulnerable to the database, which is determined by the responsibility of the database, most of
Ii. Summary of PrinciplesPrinciple 1, only lists the fields that need to be queried, which has no noticeable effect on speed, mainly considering saving the memory of the application server.Original statement: SELECT * from adminOptimized to: Select
After the successful start of MongoDB, and then open a command line window input MONGO, you can do some of the database operations.1. Enter Help to see the basic Operation command:Show DBS: Display database list Show Collections: Displays a
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.