Click here to Skip to main content
15,909,030 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
SQL
CREATE PROCEDURE pTest()
    BEGIN
        CREATE TEMPORARY TABLE tblTest (
            OrderDate varchar(200)
        );
        DROP TEMPORARY TABLE tblTest;
    END//


SQL query:

SQL
CREATE PROCEDURE pTest( ) BEGIN CREATE TEMPORARY TABLE tblTest(
OrderDate varchar( 200 )
);


MySQL said: Documentation
#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 5
Posted
Updated 29-Jul-12 21:41pm
v2
Comments
Kenneth Haugland 30-Jul-12 3:44am    
Seems that your current server version does not support the command you have supplied.... As stated in the error. So what version of SQL are you running this on?
roxyraj 30-Jul-12 4:27am    
mysql version 5.5.16

1 solution

I wrote an article on how to use google, if you're confused. I found this[^].
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900