Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Context and Cursors
Hi Calista
Try writing two procudures. The first procedure will contain the loop that select the keywords, and the second will contain the context search, this is an easy way of making your code more readable, and easier to debug.
Without an error message it is difficult to say what would be causing the error.Also if you say what you are trying to do it would help.
First procedure
BEGIN
htp.p('<html>'); htp.p('<head>'); htp.title('ITBids | URLs'); htp.p('</head>'); for it_rec in itkeywords_cur loop second_proc(it_rec.tempkey)
end loop
CURSOR url_temp_cur IS
SELECT textkey from url_ctx;
BEGIN ctx_query.contains('BG_MAIN_POL',tempkey,'url_ctx');
for url_rec in url_temp_cur loop
INSERT INTO iturls values(url_temp_cur.field_name); end loop;
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
Received on Tue Jul 20 1999 - 01:22:09 CDT
![]() |
![]() |