Possible Duplicate:
Error with mysql procedures ERROR 1304 & ERROR 1305
I try to run a command to drop a procedure:
DROP PROCEDURE create_datetable
By doing this I get the a warning:
1304 PROCEDURE create_datetable already exists
After that when I'm trying to create a new procedure with the same name, I get the same warning.
What does this mean?
DROP PROCEDURE removes the definition of one or more existing procedures. To execute this command the user must be the owner of the procedure(s). The argument types to the procedure(s) usually must be specified, since several different procedures can exist with the same name and different argument lists.
Using SQL Server Management Studio Expand Databases, expand the database in which the procedure belongs, and then expand Programmability. Expand Stored Procedures, right-click the procedure to remove, and then click Delete.
The syntax to a drop a procedure in Oracle is: DROP PROCEDURE procedure_name; procedure_name. The name of the procedure that you wish to drop.
Reference: Drop Procedure.
The code:
DROP PROCEDURE IF EXISTS procedureName; ...
Edit:
Can you try to rename the procedure and then try to drop it as per this post: Rename a mysql procedure?
try this:
UPDATE `mysql`.`create_DataTable` SET name = '<new_proc_name>', specific_name = '<new_proc_name>' WHERE db = '<database>' AND name = '<old_proc_name>';
Also note: If have granted privileges to users for this procedure you will need to update the procedure name in newProcedure as well.
UPDATE `mysql`.`create_DataTable` SET Routine_name = '<new_proc_name>' WHERE Db = '<database>' AND Routine_name = '<old_proc_name>'; FLUSH PRIVILEGES;
Do you have the freedom to delete all procedures? If so please try out this post: Drop all stored procedures in MySQL or using temporary stored procedures and post2: Drop all stored procedures in MySQL or using temporary stored procedures.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With