MySQL Forums
Forum List  »  Stored Procedures

Re: SP syntax error??
Posted by: Jonathan Stephens
Date: March 28, 2014 01:09AM

You're missing a keyword. Try

DECLARE userCursor CURSOR FOR
SELECT last_name, first_name, users.id...

See http://dev.mysql.com/doc/refman/5.7/en/declare-cursor.html

Jon Stephens
MySQL Documentation Team @ Oracle

MySQL Dev Zone
MySQL Server Documentation
Oracle

Options: ReplyQuote


Subject
Views
Written By
Posted
2499
March 27, 2014 04:08PM
1210
March 27, 2014 08:26PM
1160
March 28, 2014 10:47AM
1152
March 28, 2014 12:04PM
1210
April 04, 2014 01:49PM
Re: SP syntax error??
1164
March 28, 2014 01:09AM
1272
March 28, 2014 10:41AM
1141
March 28, 2014 12:11PM
1144
March 30, 2014 11:04PM
1071
April 04, 2014 01:02PM
1088
April 04, 2014 01:36PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.