Home Answers Viewqa SQL SHOWING ERROR CODE 1064 WHILE TRYING TO EXECUTE PROCEDURE

 
 


rudranarayana samal
SHOWING ERROR CODE 1064 WHILE TRYING TO EXECUTE PROCEDURE
1 Answer(s)      2 years and 6 months ago
Posted in : SQL

I AM TRYING A SP BUT IT IS NOT SAVING AND WORKING.DOES THE STORED PROCEDURE WORK PARTLY? BELOW IS MY QUERY

DELIMITER$$

DROP PROCEDURE IF EXISTS `test_query`.`updt_cls_cat_name`$$

CREATE PROCEDURE `test_query`.`updt_cls_cat_name`()

    BEGIN
    DELETE FROM FEE_CLASS_CATEGORY_NAME;
    ALTER TABLE FEE_CLASS_CATEGORY_NAME AUTO_INCREMENT=20;
    INSERT INTO FEE_CLASS_CATEGORY_NAME(CLASS_CATEGORY_ID) SELECT CLASS_CATEGORY_ID FROM FEE_CLASS_CATEGORY;
    UPDATE FEE_CLASS_CATEGORY_NAME
SET CLASS_CATEGORY_NAME= CASE
    WHEN CLASS_CATEGORY_ID=1
THEN 'LOWER'
    WHEN CLASS_CATEGORY_ID=2
THEN 'MEDIUM'
    WHEN CLASS_CATEGORY_ID=3
THEN 'HIGH'
END;
    END$$

DELIMITER;

ALL THESE QUERIES OUTSIDE THE STORED PROCEDURE'S BODY ARE WORKING PROPERLY. BUT WHEN I AM TRYING TO EXECUTE THEM INSIDE IT. IT IS SHOWING ERRORS. I TRIED REMOVING THE DELIMITER KEYWORD, BUT IT IS STILL THE SAME. I AM ALSO PUTTING THE GENERATED ERROR.

(0 row(s)affected)
(0 ms taken)

(0 row(s)affected)
(0 ms taken)

Error Code : 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 'DELIMITER' at line 1 (0 ms taken)

View Answers

November 27, 2010 at 2:48 PM


got the solution.









Related Pages:
SHOWING ERROR CODE 1064 WHILE TRYING TO EXECUTE PROCEDURE
SHOWING ERROR CODE 1064 WHILE TRYING TO EXECUTE PROCEDURE  I AM TRYING A SP BUT IT IS NOT SAVING AND WORKING.DOES THE STORED PROCEDURE WORK PARTLY...)affected) (0 ms taken) Error Code : 1064 You have an error in your SQL syntax
different output trying to execute same java code
there is different output trying to execute same java code...different output trying to execute same java code  i am using net...(); JOptionPane.showMessageDialog(null, "portList :"+portList.hasMoreElements()); while
different output trying to execute same java code
different output trying to execute same java code  i am using net...);} break; } } } When i execute from netbeans, JOptionPane showing "portList : true... " portList : false" Why there is different output trying to execute same java
different output trying to execute same java code
different output trying to execute same java code  i am using net...);} break; } } } When i execute from netbeans, JOptionPane showing "portList : true... " portList : false" Why there is different output trying to execute same java
Error in MySQL Procedure Using JAVA Code
Error in MySQL Procedure Using JAVA Code  The following Java code (using Connector/J to create a stored procedure on MySQL 5.0) does not execute...("DELIMITER //\nCREATE PROCEDURE abdt (std INT)\nBEGIN\nSELECT attbegin, attend FROM
why the program is showing error?
why the program is showing error?  <%@page import="java.sql.*"%>...; It is showing the error: An error occurred at line: 33 in the jsp file...(); while(rs.next()) { String catsid=rs.getString(3); String empid
Until Loop In a Procedure
Until Loop In a Procedure       Until Loop In a Procedure is used to execute a set of statements... in a procedure. This Tutorial provides you an example to understand 'Until Loop
Until Loop In a Procedure
Until Loop In a Procedure       Until Loop In a Procedure is used to execute a set of statements... in a procedure. This Tutorial provides you an example to understand 'Until Loop
show null point Exception """ while trying 2 load a JComboBox"" data is fetch from database ms-access
show null point Exception """ while trying 2 load a JComboBox"" data is fetch... class therefore error occurs. Anyways, we have modified your code. import... sorab"; res=stat.executeQuery(ss); while(res.next()) { jcb.addItem
show null point Exception """ while trying 2 load a JComboBox"" data is fetch from database ms-access
show null point Exception """ while trying 2 load a JComboBox"" data is fetch... class therefore error occurs. Anyways, we have modified your code. import... sorab"; res=stat.executeQuery(ss); while(res.next()) { jcb.addItem
show null point Exception """ while trying 2 load a JComboBox"" data is fetch from database ms-access
show null point Exception """ while trying 2 load a JComboBox"" data is fetch... class therefore error occurs. Anyways, we have modified your code. import... sorab"; res=stat.executeQuery(ss); while(res.next()) { jcb.addItem
Code error
) read.close(); } } } While using this it shows error as: run...Code error  package trail; import... seconds) Hw can i correct this code????????   Basically, the Exception
how to execute this code - JSP-Servlet
how to execute this code  hi guys can any help me in executing this bank application http://www.roseindia.net/jsp/bank.shtml, i need to use any database plz tell me step-to-step procedure for executing this,i need to create
error in program when trying to load image in java - Java Beginners
error in program when trying to load image in java  Hi, I'm trying... don't know what it means. ProductInventoryVGUI Uncaught error fetching image...) at sun.awt.image.ImageFetcher.run(Unknown Source) this is my code
Records are not inserting in to main table while running the mysql stored procedure.
Records are not inserting in to main table while running the mysql stored procedure.  Hi, Im migrating procedures from oracle to MySql.In that procedure records are not inserted into main table from temp table.But im getting msg
compiled but showing below error
compiled but showing below error  Good morning, By using axis api, am getting the following error but the wsdl file is generating. what is the mistake I done. Unable to find required classes (javax.activation.DataHandler
Error in a code. - Java Beginners
Error in a code.  This is the question I posted yesterday: "I'm trying to write a program that has a text field for input, two buttons.... I'm confused about where and what i should put into the overall code. Also I can't
SQLGrammarException while trying to save data in db
SQLGrammarException while trying to save data in db  //hibernate cfg file// <?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN
i got an error while compile this program manually.
i got an error while compile this program manually.  import... ActionForward execute(ActionMapping mapping...,struts jar files and i got an error in saveErrors() error Heading cannot find
Dll issue while launching the application
itself its showing one error message since its not able to get the dll and this time...Dll issue while launching the application  I am using one dll in my... message(e.g msi has not installed , code for this i have implemented in the main
Erron while
with that data.Here is my coding and error showing on that coding.Could anybody help to know my error? coding: public class Test { public static void main(String...Erron while   Hi, i'm doing a project regarding xml. I want
procedure with code - JavaMail
procedure with code  hi thank u for sending a suitable link. but in that no info about sent item folder creation. i want to place a SENT MAIL FOLDER like inbox. so all the mails that r send r srored in sent mails folder. pls
Showing error in the driver declaration.Please suggest
Showing error in the driver declaration.Please suggest  org.apache.jasper.JasperException: Exception in JSP: /LogIn/8June.jsp:15 12: String driver = "org.gjt.mm.mysql.Driver" 13: //String connectionURL = "jdbc:mysql
Showing Error for Prepared stmt in a jsp
Showing Error for Prepared stmt in a jsp  i hav a task to connect jsp to oracel database using preparestatement and gettin an error showin dat...;/body> </html> Error: HTTP Status 500 - type
Showing Error for Prepared stmt in a jsp
Showing Error for Prepared stmt in a jsp  i hav a task to connect jsp to oracel database using preparestatement and gettin an error showin dat...;/body> </html> Error: HTTP Status 500 - type
Do..While Loops
3.10.2. Do…While Loops The do...while statement always execute... the condition is true. Syntax do { code to be executed; } while (condition); e.g. Here we define i = 1, and then increment i with 1. The code first execute i=1+1
error message - Java Beginners
error message  sir, while i m trying to execute my first program(print my name)I get error message like" javac is not recognized as internal... and run java programs. i am sending simple java code, public class Hello
Error while SQL Server connection to Java
Error while SQL Server connection to Java  import java.sql.*; public class OdbcSqlServerConnection { public static void main(String args[]) throws... this code, i am getting an error as OdbcSqlServerConnection.java:29: class,interface
Error while SQL Server connection to Java
Error while SQL Server connection to Java  import java.sql.*; public class OdbcSqlServerConnection { public static void main(String args[]) throws... this code, i am getting an error as OdbcSqlServerConnection.java:29: class,interface
JSP SQL Error
JSP SQL Error  Hi While trying to execute the below code i'm getting the following error "java.sql.SQLException: Io exception: Got minus one from a read call ". please help me out. <% try{ String Username
error while running the applet - Java Beginners
); ++num; } } } } i have problem while running the code , error...error while running the applet  import java.applet.Applet; import... 3. create a MyFrame.html file copy the following code and paste
Stored Procedures and Functions
and flexibility for a programmer because stored procedure is easy to execute than.... The statement is section of code that we want to execute when the handler is fired. Now we are creating a simple procedure and in this we are trying to deal
error while inserting millions of records - EJB
error while inserting millions of records  Hello, I am using ejb cmp... problem my code is public void insertData(){ Context context... e.printStackTrace(); } }   The following error is occur
Use while loop in jsp code
Use while loop in jsp code   ... between while and do while loop, do while loop first execute the loop body...://localhost:8080/user/while_statement.jsp  Download Source Code
java runtime error
java runtime error  hi friends i am trying to run the fallowing program but i am getting the error Exception in thread "main... { JOptionPane.showMessageDialog(null,"JDBC Programming showing Creation
iBatis Stored Procedure Example
of code is calling stored procedure and results contact lists. Full source code... iBatis Stored Procedure Example   ... have created a stored procedure in "vin" database named as showData
Insert Data in Table Using Stored Procedure
;); 7.Step to call procedure: We are using CallableStatement to execute a stored procedure into java code. The following syntax is used to create an object..., e.g setString() to pass string in procedure. 9.Step to execute
Snippet Code Error
Snippet Code Error  The following is a snippet of code from a Java application which uses Connector/J to query a MySQL database. Identify possible...= 0"); rs= s.getResultSet(); while (rs.next()) { Reservation v
Java error reached end of file while parsing
Java error reached end of file while parsing... to describe you a code that help you in understanding  java error reached end of file while parsing ,In this code we want to display Time in hour, minute
How to convert Mssql Procedure into Mysql Procedure.
How to convert Mssql Procedure into Mysql Procedure.  Hello Sir, I have a mssql procedure and i need it to be converted to mysql ... Below is my mssql procedure code.. WITH CTE AS ( SELECT ROW
How to convert Mssql Procedure into Mysql Procedure.
How to convert Mssql Procedure into Mysql Procedure.  Hello Sir, I have a mssql procedure and i need it to be converted to mysql ... Below is my mssql procedure code.. WITH CTE AS ( SELECT ROW
Create a Simple Procedure
abc is used to execute the procedure andS return you the records from... Create a Simple Procedure       Simple Procedure is a set of SQL statement which are executed
procedure
procedure   step by step procedure to build servlet or jsp in eclipse
Java code error - Java Beginners
Java code error  Hi, I am using a MooreQuery to look for neighbors in a grid: MooreQuery query = new MooreQuery(grid, this,(int) (2... exception from the query when trying to iterate , Can anyone help me
Hibernate error in eclipse
Hibernate error in eclipse   Hi... while running my application i got... are trying to submit the null value. So, review your code again or send your full code........ I will try to short out your problem
how to execute a unix shell script from a java program
the script name from a java code .once you execute this java program...how to execute a unix shell script from a java program  well , i am... solution . could anyone please give a sample code as of how to do this... what i am
procedure
procedure  write a procedure to update salary to 20% based on employee number
Difference between error and exception ????????
Difference between error and exception ?  Can we handle a error in java if yes than give an code of an example? Difference between error... yourself or that might be thrown because of an obvious run-time error such as trying
while and do while
while and do while  hello, What is the difference between a while statement and a do statement?   hello, A while statement checks... of a loop should occur. The do statement will always execute the body of a loop
error while compiling - Java Beginners
error while compiling  i am facing problem with compiling and running a simple java program, can any one help me, the error i am getting is javac is not recognised as internal or external command  Check if you JAVA_HOME

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.