Advertisement

04.24.2002 at 05:16AM PDT, ID: 20293078
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.8

Using A Non-Char Field In A Ref-Cursor

Asked by Avotar in Oracle Database

Tags: , ,

Hi,

i'm using a non_char field in a dynamic SQL-String i'm building up, to eventually use it in a Ref-Cursor.

The String is the following:
 'select vw1.externe_code externe_code,'||
 ' vw1.mob_id mob_id,'||
 ' vw1.geometrie geometrie '||
 ' from riv_view_'||to_char(r_laag_geo.oty_id)||' vw1'||
 ' where vw1.tech_eind_datum is null'||
 ' and   (   vw1.func_eind_datum is null'||
 '       or  (   vw1.func_eind_datum is not null'||
 '           and vw1.func_eind_datum > sysdate) ) '||
 ' where sdo_filter(vw1.geometrie, '||r_cel.geometrie||' , '||
          ''''||'querytype=window )'||''''||') = '||''''||'TRUE'||''''||';

For the people who haven't seen this before... sdo_filter is an Oracle Spatial function and the variable r_cel.geometrie is a spatial field.

The problem is that this spatial field cannot be converted to char, and i need a char field to use this construction in ref_cursor.

I need this construction i believe because of my "table_name". In the example it's  

riv_view_'||to_char(r_laag_geo.oty_id)||' vw1'||

There are appr. a 1000 views this way, and i don't want to build the same cursor a 1000 times to avoid the uncovertable field.

I need your help, Because i believe that there are more field that cannot be converted.

I don't mind not using a refcursor, but then give me another solution.

My team leader spoke of a way to go around by building a procedure that had the return value "REF Cursor"... i haven't got a clue what he is meaning, but he just went on a trip and can't be disturbed...


I think this is a challenge, so 300 points are in order here. And if anyone can give both answers i'll raise it another 200....

pls pls pls help me... Start Free Trial
[+][-]04.24.2002 at 07:34AM PDT, ID: 6965895

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.24.2002 at 08:38AM PDT, ID: 6966105

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.24.2002 at 11:41AM PDT, ID: 6966715

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.24.2002 at 01:10PM PDT, ID: 6966954

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.24.2002 at 03:14PM PDT, ID: 6967190

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Oracle Database
Tags: oracle, spatial, variable
Sign Up Now!
Solution Provided By: pennnn
Participating Experts: 2
Solution Grade: A
 
 
[+][-]04.25.2002 at 12:46AM PDT, ID: 6967893

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.30.2002 at 01:08PM PDT, ID: 6981816

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.14.2002 at 05:58AM PDT, ID: 7008454

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32