Create a recursive stored procedure in Mysql

Step 1: SET max_sp_recursion_depth = 12; Step 2: CREATE createChildDept process SQL code www.2cto.com DELIMITER $ USE 'zhiku '$ DROP PROCEDURE IF EXISTS 'createchilddept' $ CREATE DEFINER = 'root' @ '% 'Procedure 'createchilddept' (IN rootId INT, IN

Mysql text import and export data

Mysql text import and export data to establish a test table. Prepare the data. First, create a table for testing to indicate the student information. The fields include id, name, age, city, and salary.The Id and name cannot be empty. Www.2cto.com

Mysql record query log parameter configuration

Mysql provides a complete set of log record configuration items, but many of them are disabled by default. I was wondering why Mysql does not have a query listener like SQL Server. After searching for information, it is found that Mysql can also

Build a MySQL Master/Slave database using the local environment

Use the local environment to build a MySQL master-slave database. First of all, let's introduce my configuration environment. The local machine is equipped with the MySQL5.5 IP address 192.168.1.101 (this address is self-applicable and will change

Mysql multi-column Index (Multiple-Part Index)

Mysql multi-column Index (Multiple-Part Index) when Multiple columns range scan, use the in SQL code show create table 20130314t1 CREATE TABLE '3030314t1 '('id' int (11) NOT NULL, 'col1' int (11) not null, 'col2' int (11) not null, primary key ('id')

MySQL master-slave backup under redhat

In redhat, MySQL master-slave backup is used as a Java programmer in a small company. In addition to coding, the backup is also very complicated. This time, I have the opportunity to access the master-slave backup of MySQL Data, in the past, the

Mysql-proxy read_query method implements post-Authentication connection after executing special SQL statements

The mysql-proxy read_query method implements authentication connection after special SQL is executed. In mysql-proxy, you can set session variables, this function allows you to perform Secondary authentication by executing the specified SQL

Mysql database summary and review

Mysql database summary and review 1. enhanced mysql database Review 2. mysql transaction trigger 3. mysql index foreign key enhancement 4. zendstudio Installation and Use 5. svn version controller usage 1. mysql database review enhancement 1. Export

Differences between Delete/truncate/drop

Delete/truncate/drop differences 1. delete/truncate only deletes data, does not Delete the table, the index structure. Drop will delete the table structure and the index/constrain/trigger that depends on the table. The procedure/function will be

Mysqldump: Couldn't execute 'select @ GTID_MODE...

Mysqldump: Couldn't execute 'select @ GTID_MODE... when MySQL 5.6 mysqldump is used to back up MySQL versions earlier than MySQL 5.6, an exception occurs. 1 mysqldump: Couldn't execute 'select @ GTID_MODE ': unknown system variable 'gtid _ mode' (119

How to accelerate MySQL Import and Export

The method for accelerating MySQL import and export the SQL statement exported by MySQL may be very slow during import. It may take several hours to import millions of data records. Using a few parameters properly during export can greatly speed up

Sp_object MYSQL obtains the content of the specified object and Definition Statement in the current instance.

Sp_object MYSQL obtains the content of the specified object and Definition Statement in the current instance [SQL] DELIMITER $ USE 'test' $ DROP PROCEDURE IF EXISTS 'SP _ object' $ CREATE PROCEDURE 'SP _ object '(p_OBJECTNAME VARCHAR (255 ),

MYSQL each user obtains one record in three ways (group by xxx)

In MYSQL, each user reads one record in three ways (group by xxx) and asks me about the SQL statements in this regard. I remember it specially, after all, this is also quite common [SQL] select * from (select * from member_payment order by id desc)

SQL optimization: Association of two tables in millions, from 40 minutes to 3 seconds

SQL optimization: Join two tables of millions. The process from 40 minutes to 3 seconds [SQL] the table structure is as follows: [SQL] CREATE TABLE 'deviceback' ('id' int (11) NOT NULL AUTO_INCREMENT, 'imei' varchar (100) NOT NULL comment' unique

Mysql parameter optimizer_switch

Optimizer_switch is introduced in mysql 5.1 to control the behavior of the mysql optimizer_switch. He has some result sets that enable and disable optimizer behavior through on and off control. The global validity period and session are used. The

Mysql master-slave setup and Mysql O & M commands

Mysql master-slave setup and Mysql O & M related commands 1, install mysql, a lot of ways, rpm installation yum-y install mysql-server mysql-devel mysql-plugin mysql-test2, start/etc/init. d/mysqld start3, master edit/etc/my. cnf # Make sure that

Mysql outfile infile import and export data

Mysql outfile infile import and export data export [plain] SELECT * into outfile '/tmp/jason.txt 'fields TERMINATED by', 'From test. jason; or [plain] SELECT * into outfile '/tmp/jason1.txt' fields terminated by ', 'optionally enclosed by' "'Lines

Ubuntu Server uses the automysqlbackup script

Ubuntu Server used the automysqlbackup script. The Server was accidentally shut down yesterday, causing damage to the database file in the development environment. So I remembered the automatic backup task. I originally planned to write a script

Mysql xtrabackup Incremental Backup

Mysql xtrabackup Incremental Backup mysql Incremental backup policy full backup on Monday, other Incremental backup, according to business needs, set the retention date, such as to retain January. Incremental Backup steps; 1. Create full backup; 2.

Log_bin_trust_function_creators error Solution

Log_bin_trust_function_creators error solution when mysql establishes a function locally or remotely or procedure, the preceding error is reported. The test result is that the value of log_bin_trust_function_creators is off: Set global

Total Pages: 3233 1 .... 3213 3214 3215 3216 3217 .... 3233 Go to: GO

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.