Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>For debugging purposes you can use</p> <pre><code>DBMS_UTILITY.format_error_backtrace; </code></pre> <p>Make sure all alias in your cursors (not only your table) match the columns you are trying to access e.g.</p> <pre><code>FOR x IN SELECT zip_code zipCode FROM myTable LOOP dbms_output.put_line(x.zip_Code) END LOOP; </code></pre> <p>The example breaks because x contains zipCode instead of zip_code.</p> <p>With the information you provided, we can't give any further help, post a describe of your table aswell as your cursors declaration or make a compilable example.</p> <p>This is useful <a href="http://sqlfiddle.com/" rel="nofollow">http://sqlfiddle.com/</a></p> <p><strong>Edit</strong></p> <p>The problem is your cursor declaration</p> <pre><code> SELECT CCTR_PERSON_ADDRESS_ID, 'AL2' AL, ADDRESS_LINE2, ZIP_CODE -- ADD THIS FOR THE ZIP CODE, YOU NEED TO ADD ALL THE OTHER COLUMNS ASWELL... FROM STG_RT2_PERSON_ADDRESS WHERE UPPER(ADDRESS_LINE2) IN ( SELECT UPPER(ORG_NAME) FROM STG_RT2_ORGANIZATION WHERE NOT REGEXP_LIKE(ORG_NAME, '[0-9]') AND NOT ( LOWER(ORG_NAME) LIKE 'unknown' OR LOWER(ORG_NAME) LIKE 'no address%' OR ORG_NAME ='-' OR ORG_NAME =' ' ) ); </code></pre> <p>Every CUR_AD_2 is a record on your result set, therefore it has its same number of columns and names, in your query, you have only 3 columns but you are trying to access a lot of them (like zip code) that are not in the cursor; make sure to add ZIP_CODE and all the other columns needed. Or just delete them from the INSERT statement</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload