Click here to Skip to main content
15,891,033 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys, I have the following code for creating a stored procedure using netbeans embedded DB

SQL
DELIMITER //
CREATE PROCEDURE GetAllSeats()
BEGIN
SELECT * FROM SEAT;
END //
DELIMITER ;


I get the following error :

VB
Error code -1, SQL state 42X01: Syntax error: Encountered "BEGIN" at line 2, column 1.
Line 2, column 1
Posted
Updated 29-Aug-13 3:57am
v2

1 solution

Try changing this
SQL
DELIMITER //
CREATE PROCEDURE GetAllSeats()
As
BEGIN
SELECT * FROM SEAT;
END //
DELIMITER ;



User As before Begin
 
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