Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Informix
Expertise: Beginner
Jun 14, 2000

SQLCODE Error -0000019514

Question:
When I do a DECLARE CURSOR FOR SELECT, it returns a SQLCODE = 0. When I do an OPEN CURSOR, it also returns a SQLCODE = 0. But I have trouble with the FETCH cursor-name INTO data-items and get a "SQLCODE = -0000019514 with a SQLERRMG = CURSOR IS NOT PREPARED."

Any suggestions?

Answer:
I'm familiar with using an OPEN for UPDATE, but not the OPEN CURSOR FOR SELECT format. Try your statement without the "FOR SELECT" clause. I think the "FOR SELECT" is the default activity.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap