This tutorial by the It square Information Network www.ithov.com original release, reprint please indicate the source
The relevant software used in this installation is as follows:
Operating system: Windows 2003 Enterprise Edition
MySQL through the trigger to achieve the synchronization of two tables, need to understand the friend can look.
There are two tables A and b that require inserting a record into a and inserting a record into B, inserting a record into B and
About MySQL collation of the need for memory and proficiency in the content
1./* View Operation * *---------------------------------------------------------------------------------------------------- ---1. /* View Operation * *
Show
Define the type of exception capture and how to handle it:
DECLARE handler_action Handler
for Condition_value [, Condition_value] ...
Statement
handler_action:
CONTINUE
| EXIT
| UNDO
condition_value:
The problem is this:
A test table, the character set used by the latin1.
Select to_id from test where to_id= ' cn like _ King ';
+---------------+
| to_id |
+---------------+
| CN Ceramics _ Pottery |
| cn like _ King |
+---------------+
2 rows in
Principle
Querycache (hereinafter referred to as QC) is based on SQL statements to cache. If a SQL query starts with SELECT, the MySQL server tries to use QC for it. Each cache is saved as a key with SQL text. SQL text is not processed until the QC
If Tmpdir,mysql is not set, the default value for the system is used, usually/tmp,/VAR/TMP, or/usr/tmp. If the file system that contains the temporary file directory is too small, you can use the "-tmpdir" option for mysqld to specify 1 directories
How to start/stop/restart MySQL
First, the way to start
1, use service to start: Service mysqld start
2. Start with mysqld script:/etc/inint.d/mysqld start
3. Use Safe_mysqld to start:safe_mysqld&
Second, stop
1, use service to start: Service
Installed Ubuntu for a long time, did not go to use, the national day toss up the next, the configuration of some basic development environment, a hands-on feel like on the Ubuntu, can not say why. In order to get a local test PHP test environment
MySQL's partitioned table is a simple and efficient way to handle a large data table, which enables the application to achieve efficient processing of large data tables with little change, but the Rails ActiveRecord design practices may result in
Kinds of data types
Shaping: can have decimal and hexadecimal representations
Fu: Floating-point numbers consist of a number plus a decimal point plus a number. Two number sequences cannot be empty at the same time.
String: A character or number
Objective
Pymsql is the module that operates MySQL in Python, and its use is almost the same as MySQLdb. But currently pymysql support python3.x the latter does not support the 3.x version.
This article tests the Python version: 2.7.11. MySQL
This example for you to share the MySQL 5.6.17 installation tutorial simple version, for your reference, the specific content as follows
1.linux version mysql download (not recommended under 5.7, installation of the various bugs Ah, 5.6 is the best)
The most recent exposure to a lot of databases was that it had been in contact with SQL Server, but it started to connect to MySQL because of the needs of the project. Below let me this rookie talk about the next experience bar.
For C + +
For the MySQL table based on the operation, the specific contents are as follows
1. Create a table:To create a table's syntax form:
CREATE TABLE table_name (
property name data type,
property name data type,
...
) Property name Data
Reading Table of Contents• Download MySQL free installation version• Configure MySQL DatabaseMySQL Environment variables• Install MySQL Database
The company server is a database of Windows development connections using "MySQL"This essay will
Mysql:mysql cannot delete the foreign key, rename error on the./ruler/test2child to./ruler/#sql2 -298-92 (errno:152)
It used to be a bug in MySQL, but now it's just an unfriendly place in MySQL.
Examples are as follows:
mysql> ALTER TABLE
The implication is that the data is modified. There are 3 statements in standard SQL, which are insert, update, and delete. There is another replace statement in MySQL, so this article takes MySQL as the background to discuss how to make an UPDATE
From http://www.devshed.com/c/a/MySQL/Error-Handling-Examples/
Error Handler Examples
Here are some examples of handler declarations:
If any error condition arises (other than a not FOUND), continue execution after setting L_error=1:
DECLARE
Need to test the MySQL database, which has a database of tens of thousands of data, how to write a PHP file every time update hundreds of information, I am writing a cycle to update a message, so I know with a while to write on it, if an update like
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service