MySQL FAQs
FAQs Categories
Client Server Commands
Database Structure
Table Types or Storage Engines
Indexes
SQL Statements
Table Joins
Funtions and Operators
Tricky Select Queries
Speed Up Queries
Data Back Up
General Questions
Errors
N.M.P.L. Company www.NearMePayday.Loan || 3-month (90 days)
Powered by MySQL
 
Home / Errors / Question No: 30

ERROR 1295 (HY000): This command is not supported in the prepared statement protocol yet

Does MySQL support dropping and creating functions and procedures in functions? I want to search stored procedures with prepare statement in MySQL-5.0. It seems that can not use 'drop procedure xxx' in prepare statement , like this:

mysql> create procedure drpsp()
-> begin
-> prepare aa from 'drop procedure ct_tb';
-> execute aa;
-> end
-> //
Query OK, 0 rows affected (0.00 sec)

mysql> call drpsp//
ERROR 1295 (HY000): This command is not supported in the prepared statement protocol yet

mysql> drop procedure ct_tb//
Query OK, 0 rows affected (0.00 sec)

the same, "drop function/trigger xxx" is also not supported in prepare statment. Is it a lack of feature in MySQL-5.0 version?

Answer No: 30

Exactly. MySQL doesn't support dropping and creating functions and procedures or triggers in functions or triggers.

Related MySQL FAQs to the Above FAQ

Why-I-see-an-error-when-I-EXPLAIN-for-update-query Why I see an error when I EXPLAIN for update query?

ERROR-1064-(42000):-You-have-an-error-in-your-SQL-syntax ERROR 1064 (42000): You have an error in your SQL syntax

1264-Out-of-range-value-adjusted-for-column 1264 Out of range value adjusted for column

1048-Column-cannot-be-null 1048 Column cannot be null

1093-You-can-not-specify-target-table-comments-for-update-in-FROM-clause 1093 You can not specify target table comments for update in FROM clause

1191-Cant-find-FULLTEXT-index-matching-the-column-list 1191-Cant find FULLTEXT index matching the column list

About FAQs: Recently Added FAQs

About MySQL FAQs: Site Map | Bookmark Us | Recommend this Site to Your Friend | Contact Us

Useful Links: Wikipedia.org | Oracle.com | w3schools.com | www.php.net | Github.com

© 2021  www.mysqlfaqs.net
All rights reserved.