(ZZ) phpMyAdmin setting mysql stored procedure and related issues

Source: Internet
Author: User
(ZZ) How does phpMyAdmin set the mysql stored procedure and its problems ??? The database needs to be used in the past few days. MySQL is used, and phpMyAdmin is used in the database management software. To create a stored procedure, you need to execute an SQL statement. The statement is as follows. An error is returned, the error message is as follows: "#1064

(ZZ) How does phpMyAdmin set the mysql stored procedure? ? ? The database needs to be used in the past few days. MySQL is used, and phpMyAdmin is used in the database management software. To create a stored procedure, you need to execute an SQL statement. The statement is as follows. An error is returned, the error message is as follows: "#1064-You have an error in your SQL syntax;

(ZZ) phpMyAdmin setting mysql stored procedure and Problems

? ? ? The database needs to be used in the past few days. MySQL is used, and phpMyAdmin is used in the database management software. To create a stored procedure, you need to execute an SQL statement. The statement is as follows. An error is returned, the following error is reported:

"#1064-You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near'' at line 3"

After going online, I found that it was a classic error. Now the record is as follows, so that I will not encounter it again later:

?

Solution:

? ? ? ? First, make sure it is not an SQL statement problem. If it is a statement problem, you have to modify it yourself. If the statement is correct, you can correct it as follows:

? ? ? ? 1. I heard that the command line can be normally executed by inputting the correct SQL statement, and an error occurs in phpMyAdmin. I did not try this method. If you are interested, you can verify the following;

? ? ? ? 2. When you enter an SQL statement, the default Separator of phpMyAdmin is ";" (semicolon), instead of "//" (double slash ).

For example, an error is reported:


As shown in the following figure:


? ? ? ? The main problem here is embodied in the separator, which won't be encountered during command line input. This explains why method 1 is also feasible. Well, for personal guesses, please leave a message to anyone you know.

?

? ? ? ? There are also related posts on the well-known StackOverFlow website. If you are interested, you can follow these steps:

#1064-You have an error in your SQL syntax

?

View stored procedures

? ? ? ? To view the created stored procedure in phpMyAdmin, run the following statement to view the created stored procedure:

Show procedure status;

The result after I run the command is as follows:

Reprinted from http://blog.csdn.net/chenlong12580/article/details/7514960

?

?

?

?

?

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.