What is this problem? table (Cast (Array))

outputs in a type of database
"type InNumberTab is table of number;"

declare

v_tbseq_trans: = InNumberTab (null);
Select count (*) in v_cont
of dados_propriedade dp
where dp.num_pessoa = p_num_pessoa
Num_nirf group;
v_tbseq_trans. EXTEND (SQL % ROWCOUNT);
v_cont: = 0;
for v_cs in
(select IFRS to_number (replace(dp.num_nirf,'-','')), max (dp.seq_transacao) seq_transacao
of dados_propriedade dp
where dp.num_pessoa = p_num_pessoa
Group by dp.num_nirf loop)
v_tbseq_trans (v_cont): = v_cs.seq_transacao;
v_cont: = v_cont + 1;
END LOOP;

Open the p_cursor_prop for
Select
*
of dados_propriedade dp
where dp.seq_transacao in (SELECT FROM TABLE column_value (CAST (v_tbseq_trans as InNumberTab)));

I'll try to guess what you mean.

If you use the type of the object or collection in the SQL query, you must report in SQL server, not in the PL/SQL code:

SQL> declare  2   type na is table of number;  3   nat na := na(1,2,3);  4  begin  5   for x in (select column_value y from table(cast(nat as na))) loop  6     dbms_output.put_line(x.y);  7   end loop;  8  end;  9  / for x in (select column_value y from table(cast(nat as na))) loop                                                       *ERROR at line 5:ORA-06550: line 5, column 56:PL/SQL: ORA-00902: invalid datatypeORA-06550: line 5, column 11:PL/SQL: SQL Statement ignoredORA-06550: line 6, column 25:PLS-00364: loop index variable 'X' use is invalidORA-06550: line 6, column 4:PL/SQL: Statement ignored

SQL> set serveroutput onSQL> create type na is table of number;  2  /

Type created.

SQL> declare  2   nat na := na(1,2,3);  3  begin  4   for x in (select column_value y from table(cast(nat as na))) loop  5     dbms_output.put_line(x.y);  6   end loop;  7  end;  8  /123

PL/SQL procedure successfully completed.

What is your problem?

Rgds.

Tags: Database

Similar Questions

  • Some of my incoming emails go in my box to delete instead of my Inbox. What causes this problem?

    Some of my incoming emails go in my box to delete instead of my Inbox. What causes this problem?

    Additionally, make sure that your antivirus program does not scan your incoming mail.

  • Did he average someone what is this problem?

    Hello, I am a new developer here and I had this problem. I don't know where I can find references and what is the problem? If anyone knows, could you explain to me? Thank you.

    24756395 (FrontDemo) process ended the code SIGSEGV = 1 fltno = 11 ip = 001025f8 (com.example.FrontDemo.testDev_e_FrontDemob3c580db@_btext+0x980) ref = 35e5cdc0

    THX, I've solved the problem

  • What is this problem?

    J - dev 11.1.1.4, ADF BC.


    After that my compilation and try to run my application integrated weblogic Server, a few times, but I have this problem:

    Error (1.1): line 1, column 1 >: XML-20108: (Fatal Error) start of element root waited.

    What is c. How to solve it. Thank you!


    Rgds!

    This happens if an xml file is corrupted somehow. Open the file and check that there are no invalid character (s) at the beginning of the file.

    Timo

  • Receipt the 0x80072EFD error message. What is this problem? How is it fixed?

    Just can't use my email all of a sudden.  That's happened this afternoon for several hours.  Then it started working again.  Then tonight just in the last hour, started having this same error message.

    Hi ThomasMooreTN,

    ·         What e-mail application use?

    ·         What happens when you try to access your emails?

    ·         Did you the latest changes on the computer?

    Reply back with more information.

    This error code occurs if there is a problem in internet connection. I suggest you follow the provided article and check if it helps.

    The problems of Internet connection

    http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-Internet-connection-problems

  • What is this problem? compatibility problem between your power management...

    Hi, my windows is 8.1 pro with media center, and my laptop is lenovo G500. I get this error in the center.what action is the first error and what is the the second error? and how can I fix them?... tnx.

    Have you tried to reinstall the Lenovo power management utility?

  • System V Desktop toaster error: mfc110u.dll is missing. What is this problem how to solve the problem

    Simply upgrade Window8. Massage appear: mfc110u.dll is missing.

    Please let me know why this error arise as system error & how to solve.

    Anil


  • What is this problem with Verizon abandoned Microsoft Premium

    Verizon reported that they no longer Microsoft Premium with their dsl.  What that means for me?  electronic mail, Favorites, contacts. etc /

    Hi TheresaSustak,

    You can check the mentioned Verizon link below for more information:

    http://www22.Verizon.com/ResidentialHelp/FiOSInternet/General+support/essentials+and+extras/QuestionsOne/127186.htm

  • does anyone know what causes this problem

    Untitled-1.jpg

    I created each of these zombies separately.  I tried to make a rally to show them what we have done so far.  They were all saved as PNG.  They were all created using layers.  Can someone tell me why the strange ghost images appear around them?  These strange pieces is not on the original PNG when you view them... that once I click and drag them on the PS canvas.

    You need to save as a png-24 format.

  • 0x000000001a 0 x 00041284, 0x0a75c001, 0x0000b6bc, 0xc0883000 what is the problem.

    Issues related to the:

    1. where can I go to find answers to the Blue error screen like that?

    2. What is this problem and how to fix it?

    Thank you

    Deciphering bug check codes is not an easy task.

    0x1A bug check code

    http://msdn.Microsoft.com/en-us/library/ff557391 (v = VS. 85) .aspx

    Parameter 1 in your case is:

    A PTE or fixed work list is corrupted.

    http://social.technet.Microsoft.com/forums/en/w7itprohardware/thread/77c45a40-6caa-4cff-924F-e6de4cf5511b

  • Keep having to disable and reactivate my IDT High Definition Audio CODEC, what's the problem?

    Hello!

    I have a Pavilion Touchsmart Sleekbook 14 "with Windows 8, I bought the news about 7 months ago. I have not yet updated to Windows 8. 1.

    Recently, I noticed that my audio suddenly stops working. This happens usually when my computer has been asleep and I start it again. No sound through headphones or loudspeakers when I plug them in. I have not tried external speakers, but I imagine that the result would be the same.

    If I go into my device manager and disable and re-enable the IDT High Definition Audio CODEC the sound comes back. All the audio devices I have listed are associated with this IDT High Definition Audio. I tried to update the drivers, but he informs me that the most up-to-date drivers is already installed.

    I'm not entirely sure what causes this problem, but I remember to install a HP Windows Update or a while back about IDT High Definition Audio. I think it's an optional update.

    EDIT: after doing some more research, it looks like it is related to that Windows update and compatibility of their audio driver IDT with Windows 8 or 8.1 does not look very good. If all else fails I'll try to uninstall the IDT CODEC all together and use default HP audio.

    Someone at - he found a solution that works for them in this regard?

    Thanks Viktoria, thank you for spreading the word

    If you can mark my post on this topic with an acceptable Solution and Bravo, it help me and will allow the post to appear more frequently on research conducted on the Internet. Providing congratulations to my other posts about the issue would help a lot

    As I said, I will change my guide to troubleshooting on the issue soon (probably in the next day or two). There is no more sense to have the fix for a problem with crazy

    Mario

  • resolve issues found this problem "hardware changes could not have been detected."

    my pc has encountered this type of problem, when I visited my troubleshooting... im running windows7 basic family... What can I do to solve this problem, id already run microsoft fix in my pc but nothing is changed, I went to to see Device Manager if there is a problem, but I see no problem in Device Manager What does this problem mean? Please help me, your response will be much appreciated.

    IM on windows7 basic family and not vista... what will I do, can you sat down I like to a step by step procedure? Thanks a lot.

    Ask your Windows 7 questions in the correct Forums.

    For any question on Windows 7:

    http://social.answers.Microsoft.com/forums/en-us/category/Windows7

    Link above is Windows 7 Forum for questions on Windows 7.

    Windows 7 questions should be directed to the it.

    You are in the Vista Forums.

    See you soon.

    Mick Murphy - Microsoft partner

  • What is the reason for the slowdown of my computer when I open the heavy software or video game HD? (read the details of this problem)

    IM using windows xp service pack 3.  whenever I open a heavy software on xp, which crisscross the movie hd, game play as nfs most wanted, slow down the computer starts. every time that I discovered the video that is larger than 2 min on youtube on 360 or more depth, it slows down my computer.
    I have to ride every time, I have to put on the stand mode every time and again, I have to come to the screen where worked. I have been on the computer for 2 hours I have market and shut down my pc every time what pc slows down.
    There was no this problem, I was faced with when I buy a pc. but this problem starts from June 2012, im facing this problem every day.
    When I ask the local store (computer scientist), he told me to format the xp and install it again.
    I know that the formatting every time is not the solution to the problem. because I had formatted my pc several times, but this dosent problem solved. And there is no chance of virus in the pc, because I invested my money in total security from bitdefender which is updated each time software.
    so, my question is what is the problem to my pc? is this hardware or software problem?  What will be a solution to this issue?
    my pc config:
    ---------------
    Processor Processor amd athlon 64 * 2 dual core 6000 + 3.2 GHz

    RAM 2 GB

    motherboard asus m2n68-am

    temprature
    --------------------
    kernel 1.44v
    + 3, 3V 3.28v
    5V 5.02v
    + 12v 12.28v
    CPU 62
    RAM 46C
    CPU 3360 RPM

    Internet browser firefox 10.0.1

    Syatem summary:

    Name of the operating system Microsoft Windows XP Professional
    Version 5.1.2600 Service Pack 3 Build 2600
    Manufacturer of operating system Microsoft Corporation
    Name of the System x
    System manufacturer system manufacturer
    System product name model system
    System Type X 86-based PC
    Processor x 86 family 15 model 67 Stepping 3 Mhz-AuthenticAMD ~ 3013
    BIOS Version/Date American Megatrends Inc. 1804, 23/08/2010
    SMBIOS 2.5 version
    Windows C:\WINDOWS directory
    System directory C:\WINDOWS\system32
    Boot Device \Device\HarddiskVolume1
    The local United States
    Hardware Abstraction Layer Version = "5.1.2600.5512 (xpsp.080413 - 2111).
    Name of the user x
    Zone x
    Total physical memory 048,00 MB 2
    1.08 GB available physical memory
    Total virtual memory 2.00 GB
    Available virtual memory 1.96 GB
    Page file space 3.35 GB
    Paging file C:\pagefile.sys

    view summary

    Name of the NVIDIA GeForce 7025 / NVIDIA nForce 630A
    PCI\VEN_10DE & DEV_03D6 & SUBSYS_83A41043 & REV_A2\3 PNP device ID & 267A616A & 0 & 68
    Adapter Type GeForce 7025 / nForce 630A, NVIDIA compatible
    Adapter Description NVIDIA GeForce 7025 / NVIDIA nForce 630A
    Adapter RAM 512.00 MB (536,870,912 bytes)
    Installed Drivers nv4_disp.dll
    6.14.11.8634 driver version
    File INF oem5.inf (section Section001)
    Color plans 1
    4294967296 colors Table entries
    Resolution 1024 x 768 x 75 hertz
    32 bits/Pixel
    X memory address
    X memory address
    X memory address
    IRQ channel, IRQ 20
    Port of e/s-0x000003B0-0x000003BB
    Port of e/s-0x000003C0-0x000003DF
    X memory address
    Pilot c:\windows\system32\drivers\nv4_mini.sys (6.14.11.8634, 7,60 MB,

    No, im not using bitdefender, or 2 firewall at a time, I im using ms security essential.
    but still runnig pc very slow

    Please, read carefully and then provide the right solution...

    Do you have the Windows Desktop Search installed issue?

    Your Firefox is way outdated, then you need to update Firefox (help on Firefox).

    My version is 16.0.1

    Your msinfo32 says your NVIDIA card:

    6.14.11.8634 driver version

    To translate for the NVIDIA speak, you shift the decimal point so that it becomes:

    186.34 (your is out-of-date)

    NVIDIA says that your version of the driver should be 308.61

    I visit the page of NVIDIA GeForce Driver and let scan them driver online take a look at your system and if they offer you a update, take it, install it, reboot and recheck your video diver version and it should look like this:

    6.14.13.0861 driver version    (that's what mine said too)

    Download the NVIDIA site here:

    http://www.GeForce.com/drivers

    Reboot and double check the versions and see what things look like.

  • What is the difference between associative arrays and nested tables?

    Hello
    What is the difference between associative arrays and nested tables?

    nested tables cannot be indexed by other than pls_integer and unlike nested tables table associative cananot be declared at the schema level.

    is there any other difference set apart from the diff above 2?

    user13710379 wrote:
    What is the difference between associative arrays and nested tables?

    Name-value pairs (associative) against a list of values (table standard/nested table).

    nested tables cannot be indexed by other than pls_integer

    They are not "indexed" the way in which an associative array is indexed. A standard table is referenced by the position of the cell in the table. This position is essentially the offset of the memory of the cell from the start address of the table.

    Can not solve a cell in an associative array directly via a memory offset index. You place a cell reference value it by his 'name' (a search in the linked list/hash table).

    The following example shows the difference between the pairs of name / value and a list of core values.

    SQL> declare
      2          --// associative arrays are NAME-VALUE pairs
      3          type TArr1 is table of varchar2(10) index by pls_integer;
      4          type TArr2 is table of varchar2(10) index by varchar2(10);
      5
      6          arr1    TArr1;
      7          arr2    TArr2;
      8  begin
      9          arr1(100) := '1st entry';
     10          arr1(1) := '2nd entry';
     11          arr1(5) := '3rd entry';
     12
     13          arr2('john') := 'New York';
     14          arr2('jane') := 'Paris';
     15          arr2('jack') := 'London';
     16
     17  end;
     18  /
    
    PL/SQL procedure successfully completed.
    
    SQL>
    SQL>
    SQL> declare
      2          --// standard arrays are lists
      3          type TArr3 is table of varchar2(10);
      4          type TArr4 is table of number;
      5
      6          arr3    TArr3;
      7          arr4    TArr4;
      8  begin
      9          arr3 := new TArr3( '1st entry', '2nd entry', '3rd entry' );
     10
     11          arr4 := new TArr4( 100, 1, 5 );
     12  end;
     13  /
    
    PL/SQL procedure successfully completed.
    
    SQL> 
    
  • What am I doing wrong with this simple table?

    I have a table that I need to add unique characters to slowly.

    If the table is wordToCheck and I have a few "drop places" to check and see if a letter "fell off the coast." An index is assigned to each point of fall and I just want to add the letter to the appropriate index of the table so that I can push in a string.

    This is my code:

    wordToCheck [currentBlank.register] = currentLetter.letter.toLowerCase ();

    So you can see that if 'A' has been abandoned to the empty spot with the 2 register it would return "-a".


    The problem is that it is remove each time that I add a letter. If I put 'A' in the registry and then 2 "M" save 3 it returns '-m '.

    How do it do not replace itself every time?

    1. to the original post: If you use the same instance of table - it shouldn't happen. Looks like whenever you add letter - it's a new instance of the wordToCheck table.

    2. If you want to convert the string table - use Array.join () method.

Maybe you are looking for