There are several types of error handling statements:
§ If any error (not found) occurs, set l_error to 1 and continue execution:
Declare continue handler for sqlexception
Set l_error = 1;
§ If any error occurs (not found), execute rollback and
I asked a question at a foreign forum for the first time. I didn't expect anyone to understand my lame 'yanggela '!
The following is my question about MySQL database.
----------------------------------------------------------------------------
1. Export the entire database Mysqldump-u User Name -P Database Name > Exported file name 2. Export a table Mysqldump-u User Name -P Database Name table name > Exported file name 3. Export a database structure Mysqldump-u wcnc-p-d --
When a query statement is used, the first few or a few rows of data are often returned. What should I do at this time? Don't worry,MySQLThis feature has been provided for us.
Select * from Table limit [offset,] rows | rows offset
The limit clause
PHP programming effectively prevents MySQL database injection attacks 09: 46sql injection is one of the most important sources of website danger. Hackers often submit malicious code to a webpage form. Code To achieve some injection purposes.
Today, I found on the Internet how to integrate Microsoft Enterprise Library 5.0 into the MySQL database, and found only the extension module of entlib 4.1,
Http://entlibcontrib.codeplex.com/, according to the above instructions after the
1. in the MySQL database, the datetime type is used to store the time. When reading this field using JDBC, The resultset should be used. gettimestamp () to get a java. SQL. timestamp type data. 2. In this case, neither resultset. getdate () nor
The basic idea is to modify the MySQL configuration file, set it to MySQL without a password, restart MySQL, and then reset the root password. Finally, restore the original configuration and restart MySQL.
Http://blog.chinaunix.net/uid-26569333-id-
After the windows 7 system is installed, mysql 5.134 cannot be installed when the ROR environment is configured. The problem occurs in the last step. The specific error is as follows:
Unload and reload.
Simply remove all mysql items, including the
How to Implement the isnull function in mssql in mysql
========================================================== ============
IFNULL (expr1, expr2)If expr1 is not NULL, the returned value of IFNULL () is expr1;Otherwise, the returned value is expr2.
When a query statement is used, the first few or a few rows of data are often returned. What should I do at this time? Don't worry,
MySQLThis feature has been provided for us.
SELECT * FROM table LIMIT [offset,] rows | rows OFFSET
The LIMIT clause
Scope:
1. Include the statements in begni... end;
Declare continue handler for 1048 SELECT 'attempt to insert a null value ';
BEGIN
Insert into a VALUES (6, NULL );
END;
If the second field of Table a is not empty, the 1048 error is triggered.
2.
The mysql process is killed in a write, the computer is accidentally shut down, and hardware errors can cause mysql table damage.
Mysql table repair methods
1. mysqlcheck for table repair
Use the mysqlcheck command to repair the table
#
Q: How can I import a csv file to a MySQL database (the csv file contains Chinese content )?
The contents of the CSV file are as follows:
The table structure is as follows:
Bytes ---------------------------------------------------------------------
I recently started to summarize my experience with Mysql and will share it with you here. I hope you can make a decision. Thank you.
Let's talk about the reason why I want to learn the Mysql stored procedure, because Mysql does not support loops
It consists of two parts:
Part 1: Download MySQL ODBC dirver.
Part 2: Create a Mysql ODBC Driver.
Part 3: Create a Mysql data repository link.
Create a MySQL ODBC driver.
:
Http://dev.mysql.com/get/Downloads/Connector-ODBC/5.1/mysql-connector-
I. Installation
1. The installation steps for Linux & MySql & JDK are omitted. I use Debian5 + MySql5 + JDK6
2. Download JIRA4.2: http://www.atlassian.com/software/jira/JIRADownloadCenter.jspa
Note: Select standalone 4.2.
3.decompress the downloaded
Purpose
Command
Remarks
Disable the server
Shutdown-H now
Shutdown-H + 3 "system will shutdown after 3 minutes" indicates that the system notifies the user that the system will shut down after 3 minutes
Restart the
1. In the control panel, delete mysql first.
2. Delete the mysql directory under drive C: \ Program Files.
3. delete the directory if you have another disk. delete the empty directory. delete the ib_logfile0 and ib_logfile1 files in the C:/Documents
One requirement today is to back up mysql Data at every day. Because I don't know where the mysql installation directory is.
Pass:
[Root @ localhost root] # find/-name mysql-print/Var/lib/mysql/Var/lib/mysql/Var/lock/subsys/mysql/Etc/rc. d/init.
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