PL/SQL code still does not

declare
type dept_tab_type is table of departments % rowtype directory index;
dept_tab dept_tab_type;
v_counter number (3): = 270;
Start
because me in 10.v_count
loop
Select * into dept_tab (i)
ministries
where department_id = i
end loop;
I'm in dept_tab.first... dept_tab. Last
loop
DBMS_OUTPUT. Put_line (dept_tab (i) .department_name);
end loop;
end;

I got error
ORA-06550: line 11, column 4:
PL/SQL: ORA-00933: SQL not correctly completed command
ORA-06550: line 8, column 5:
PL/SQL: SQL statement ignored
ORA-06550: line 16, column 4:
PLS-00103: encountered the symbol ";" when expecting one of the following values:

loop

Why you are collecting data from departments like that?

Why not just bulk collect it?

declare
  type dept_tab_type is table of departments%rowtype index by binary_integer;
  dept_tab dept_tab_type;
begin
  select *
  bulk collect into dept_tab
  from departments
  where department_id between 10 and 270;
  for i in dept_tab.first..dept_tab.last
  loop
    DBMS_OUTPUT.PUT_LINE(dept_tab(i).department_name);
  end loop;
end;
/

and those who are actually trying to achieve in the first place?

Tags: Database

Similar Questions

  • PIXMA MG5220. While changing ink got the C000 error code. Tried to turn on. It still does not.

    I changed the ink when I got a C000 error code. He said turn the printer off, then on and if it still does not read the manual. The manual is no refernce this error code. Any ideas?

    Thanks in advance.

    Hello.

    This problem may occur when there is a loose object stuck inside the printer, or if one of the ink tanks was not sitting correctly.  Please, try the following:

    1. with the cover open, disconnect the power supply to the back of the printer or the wall.

    2. search for all objects or in the printer packaging material, delete if necessary.

    3 gently move as close to you as possible ink tank support.  Try to push the nearest ink tank down.  Once activated, try to close the ink tank support, repeat as needed.

    If you encounter resistance, do not go away while: support of the ink tank.

    If the error persists, find more help contact us.

  • Windows Update error code: 80072EFE - (firewall turned off, MS Fixit ran and still does not) any other suggestions

    Hello

    We had our computer offline since February and that you try to update windows (we're on vista). We get the error 80072EFE code after a long wait.
    I have been through the forums and tried the microsoft fixit and turn off our firewall. It's the things that we tried-http://windows.microsoft.com/en-US/windows7/Windows-Update-error-80072efe-or-80072f76
    I need a few suggestions more...
    Thank you in advance. Kath.
    We had our computer offline since February and that you try to update windows (we're on vista). We get the error 80072EFE code after a long wait.
    I have been through the forums and tried the microsoft fixit and turn off our firewall. It's the things that we tried-http://windows.microsoft.com/en-US/windows7/Windows-Update-error-80072efe-or-80072f76
    I need a few suggestions more...

    Even if you * know * you just did this - that in that order...

    Check your time zone and time are correct.

    Search for malware:

    Download, install, execute, update and perform analyses complete system with the two following applications:

    Remove anything they find. Reboot when necessary. (You can uninstall one or both when finished.)

    Search online with eSet Online Scanner.

    Reset.

    Now reset your Windows with this FixIt components update:
    How to reset the Windows Update components?

    Reset.

    Try to get updates.

    If it still does not work, try this...

    1. Start an elevated command prompt.
    2. Run the following commands pressing on enter after each line:

      net stop wuauserv

      CD %SystemRoot%\System32

      Ren C:\Windows\SoftwareDistribution SoftwareDistribution.old

      net start wuauserv

    3. Reset
    4. Try to reinstall updates

    * Important * When you do this, the following problems occur:

    • Updates that are currently downloaded but which have not yet been installed must be downloaded again by using Windows Update or Microsoft Update.
    • When you remove the Software Distribution folder, your download history is deleted.
    • If you currently receive updates from Microsoft Update and Windows Update, you will need to reselect this option from the Windows Update Web site.


    * Note *
    if the problem is resolved and you can successfully download and install the updates, you can delete the directory SoftwareDistribution.old to recover disk space.

  • I try to install my cs6 online ot. It is said that my code was bought, but I took it out of one of my laptops to download on it. It still does not work. Help, please

    I try to install my cs6 online ot. It is said that my code was bought, but I took it out of one of my laptops to download on it. It still does not work. Help, please

    Quickly find your serial number

    Download the CS6 products

    Activation & deactivation help

    Mylenium

  • error code 259 does not correctly updated to sp62736.

    I have a Hp Pavilion 500-141ea im trying to update the IDT audio driver for windows 8, I supported SP sp62736, it passes through the installation procedure, then it stops and comes up with this error code 259 does not correctly updated, I even disabled etc still the same antivirus software.

    Any idea?

    Hi Apache1968,

    If everything works at the moment, with the exception of downloading then I would leave it as it is. The whole "don't mess with what works" thing.

    Thank you

  • G62-355dx replaced cpu still does not

    My g62-355dx still does not work after replacement of the central unit (this is what has been flashing caps lock code... flashes once every few seconds) so after replacing the cpu I always get the same flashing... tried the hard reset code before replacing the cpu but haven't tried after... I just need to know if its perhaps the card mother and if a motherboard from a model different g62 will work in my 355dx...

    This is the third post of the kind that I put in service in the last month or so and I will repeat what I have always supported. It is almost never the CPU, regardless the blink code. It is almost always the motherboard. Your bet by far safer is to replace like with like that probably another g62-300 series motherboard will work, if it offers all your function doesn't not or vice versa, it may take a few case mods do go up and you want to avoid this.

    You will need the maintenance manual:

    .PDF of manual here

    Your motherboard reference number are located inside the memory compartment. Message if you want detailed help find a replacement.

  • Code hints does not work.

    code hints does not work. Options are checked in the preferences, but no list of suggestions appears when I write the code.

    Any ideas? (Sorry for my English)

    Nicolas

    I find the problem!

    There seems to be a conflict with the port with an extensionnel screen display!

    When I start Dreamweaver with display port unplugged, dreamweaver works fine. And I can plug it after and it stills work. Other wise, if I plug the display port before launching dreamweaver, code hinting doesn't work anymore.

    Thanks to you all

  • Cannot connect to the macbook pro guard icloud password request which I changed it too many times I don't remember and it still does not

    Can not connect to macbook pro, that keeps asking for password to icloud I have reset too many times I do not remember. Reinstalled operating system still does not work. Think to screw up the laptop and get back to a Windows machine. Not impressed with Apple.

    To connect to your computer, you must enter your computer in password journal, not your Apple ID.

    Otherwise, provide more details on exactly what is happening on.

    Writing an effective question of communities of Apple Support

  • Firefox does not connect. uninstalled and reinstalled. still does not not after firefoxupdate. IE works now what?

    Unable connect message is displayed for each Web site. IE works fine. I think the problem has something to do with the Firefox update I got this morning from notification. I have uninstalled/reinstalled Firefox and the problem persists. I tried the restart without Add-ons, still does not work. What's next?

    Hello, Barnetta, normally these problems are caused by a security/firewall software which does not recognize and therefore blocks the new versions of firefox. If please delete all the rules of the program for firefox to your firewall and let it detect the new version of the browser again.

    Difficulty of problems connecting to websites after Firefox update

  • How to fix iTunes?. It no longer starts. I reinstalled 10.3 and updated 10.6.8 repaired, repaired disk permissions, but it still does not boot to the top. TIA Pietrowiak

    How to fix iTunes?. It no longer starts. I reinstalled 10.3 and updated 10.6.8 repaired, repaired disk permissions, but it still does not boot to the top. TIA Pietrowiak

    There is a Snow Leopard update that would probably help.  It's called 10.6.8 Combo update.  Download and apply.  Then discover iTunes.

    https://support.Apple.com/kb/dl1399?locale=en_GB there is also a supplement that should also be downloaded.

    http://support.Apple.com/kb/DL1429

  • New synchronization still does not (/ questions/1007210)

    I have a PC (Windows 7) and I would like to save my favorites, etc., I move on to another PC, so I made sure I had the latest version of firefox and synchronization. I created an account of synchronization and and received a message that synchronization would begin momentarily, but nothing has changed (it has been over 2 hours). I also tried the option "Synchronize now" under Tools. Is there a way to know if it still works, because there is no status bar?

    I tried selecting all items to synchronize and disconnection and reconnection to firefox and still does not.

    Thank you.

    Hi Scotty1234 and Wesley,
    Up to now, I understand that sync is not synchronizing bookmarks between an old pc and new pc. The settings have been checked and the account has been disconnected and reconnected.

    Please try the following before making the changes: back up and restore the information contained in the profiles of Firefox in this way a work can approximately be move bookmarks manually as a last resort.

    Then on the old pc go in accounts.firefox.com and a logout and then back in. Do the same for the new pc. This should start the synchronization.

  • The plus sign next to my tab stopped working: when I click on it nothing happens. I tried uninstalling and reinstalling and it still does not work.

    The sign + to add a new tab has suddenly stopped to work earlier. I tried uninstalling and reinstalling and it still does not work. What can happen and how to fix it?

    Hello

    The reset Firefox feature can solve a lot of problems in restaurant Firefox to its factory default condition while saving your vital information.
    Note: This will make you lose all the Extensions, open Web sites and preferences.

    To reset Firefox, perform the following steps:

    1. Go to Firefox > help > troubleshooting information.
    2. Click on the button 'Reset Firefox'.
    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.

    Information can be found in the article Firefox Refresh - reset the settings and Add-ons .

    This solve your problems? Please report to us!

    Thank you.

  • CAPTCHA does not. have tried all the solutions support and installed the new FF. still does not. Help.

    CAPTCHA does not. have tried all the solutions support and installed the new FF. still does not. Help.

    Try creating a new profile as a test to check whether your profile is the source of the problems.

    See "basic troubleshooting: a new profile:

    There may be extensions and plugins installed by default in a new profile, so check that in "tools > Modules > Extensions & Plugins" in case there are still problems.

    If the new profile works then you can transfer files from the old profile to the new profile, but make sure not to copy corrupted files.

    See:

  • Does not work. Removed from Firefox and downloaded. Still does not work.

    Can't use Firefox to access the internet. Deleted Firefox and downloaded again. Still does not connect to the internet.

    The works of Windows Internet Explorer.

    See this support article - difficulty of problems connecting to websites after Firefox update

  • Cloud Computing from Toshiba service still does not

    Why is the Cloud of Toshiba service still does not, he did for months now that the service has been unreliable.
    I had many problems with the service Cloud from TV Toshiba, my TV is just more under warranty and no cloud services now work correctly.
    I found several reviews about the length of password and IP addresses and everything in the correct room works.
    Very disappointed with Toshiba support service East of rubbish.

    Posted by foxchrisamr
    Why is the Cloud of Toshiba service still does not, he did for months now that the service has been unreliable.
    I had many problems with the service Cloud from TV Toshiba, my TV is just more under warranty and no cloud services now work correctly.
    I found several reviews about the length of password and IP addresses and everything in the correct room works.
    Very disappointed with Toshiba support service East of rubbish.

    You do not mention your model and services that do not work, how can you expect then, that anyone is able to help you?

Maybe you are looking for

  • Defective print heads reported

    Hello My Officejet 8000 A809 has print runs streaky - the black cartridge seems to be the problem. I ran the print head cleaning utility and it showed the black print printhead correctly but when I tried to print a document it printer reported that c

  • unidentified for ethernet network

    I run Windows 7 on a two month old Samsung laptop. I have a problem with the connection using an Ethernet cable to the internet. It was working fine a few days ago, then suddenly stopped. I don't think I did something different. Ran ipconfig, who is

  • DR Set for Oracle SOA SUite

    Hi allWe have to implement DR for environment SOA HA Production. Here is the overview of our production environment:1 load balancer F5 to load balance requests on the web node.2. two nodes of the web - OHS layer is hosted on the nodes3. two node clus

  • Eloqua9 is supported in bulk and the Rest API v2.0?

    Nobody knows if they are both supported by E9?

  • timeout to connect to the database

    Hello at GFL 5-5-4 when the discovery of an oracle 11 g DB, in the 4th stage (selected instance monitors) I get the following: 60 seconds timeout has been reachedRequest: /console/fragment/cswqjbwmfc/system:dbwc.16/4/system:dbwc_common_auto20discover