Print the contents of a collection
I have a collection that is defined as belowtype t_collect1 is table of tab1% rowtype directory index;
v_collect1 t_collect1;
I try to print the contents of this collection as below
I'm looping v_collect1
dbms_output.put_line (v_collect1 (i));
end loop;
I also tried one of the columns in the collection, showing as
I'm looping v_collect1
dbms_output.put_line (v_collect1 (i) .col1); -where col1 is a specific column in the table tab1
end loop;
Can help find anyone, how we can print the contents of the collection?
SQL> create table tab1 (col1)
2 as
3 select 11 from dual union all
4 select 22 from dual
5 /
Table created.
SQL> declare
2 type t_collect1 is table of tab1%rowtype index by binary_integer;
3 v_collect1 t_collect1;
4 begin
5 select col1
6 bulk collect into v_collect1
7 from tab1
8 ;
9 for i in v_collect1 loop
10 dbms_output.put_line (v_collect1(i));
11 end loop;
12 end;
13 /
for i in v_collect1 loop
*
ERROR at line 9:
ORA-06550: line 9, column 12:
PLS-00456: item 'V_COLLECT1' is not a cursor
ORA-06550: line 9, column 3:
PL/SQL: Statement ignored
SQL> declare
2 type t_collect1 is table of tab1%rowtype index by binary_integer;
3 v_collect1 t_collect1;
4 begin
5 select col1
6 bulk collect into v_collect1
7 from tab1
8 ;
9 for i in v_collect1 loop
10 dbms_output.put_line (v_collect1(i).col1); -- where col1 is a specific column in table tab1
11 end loop;
12 end;
13 /
for i in v_collect1 loop
*
ERROR at line 9:
ORA-06550: line 9, column 12:
PLS-00456: item 'V_COLLECT1' is not a cursor
ORA-06550: line 9, column 3:
PL/SQL: Statement ignored
SQL> declare
2 type t_collect1 is table of tab1%rowtype index by binary_integer;
3 v_collect1 t_collect1;
4 begin
5 select col1
6 bulk collect into v_collect1
7 from tab1
8 ;
9 for i in 1..v_collect1.count
10 loop
11 dbms_output.put_line (v_collect1(i).col1); -- where col1 is a specific column in table tab1
12 end loop;
13 end;
14 /
11
22
PL/SQL procedure successfully completed.
Kind regards
Rob.
Tags: Database
Similar Questions
-
print the contents of the web pages of android Tablet
When I try to eprint from a web page, the web address line prints very well (with a bass line which reads: "sent from Samsung tablet"), but nothing about the content, even if print all preview shown on the page that I needed. Help, please! The content of the web pages is an attachment and if so, how do I get an attachment to print?
Hi TurboLady,
Thank you for the update. I appreciate it. You read the document.
The best way to print the content of the site is to print the web page using the browser in the HP ePrint app. Please download and install the shop HP ePrint from the play of Google Mobile app . For reference, I have included the HP ePrint Mobile App FAQ document.
Please let me know how it works for you.
-
I use windows live mail, for the past few weeks, I can't print the content of the mail, although the address and attachments may be printed but the content may not be printed.
Only the accessories are being printed.
Please help me, how can we overcome this problem to them.
View all Windows Live and Hotmail questions in the appropriate forum found here:
http://windowslivehelp.com/ -
Original title: malfunction of the printer
My Hp photo smart 7960 printer does not always print the content of a page, it's just leaves the dashes and spaces. Yet, some of it is printed. It always seems to be on the same site type. Other sites will still print ok... The uninstaller and reinstalling will correct or do I have to download updates?
Hello
What browser do you use?
If this is the case with some specific websites then after return from the address of the site.
I suggest you try the troubleshooting described in the article methods according if you use internet explore.
I can't print or preview before printing a Web page in Internet Explorer
http://support.Microsoft.com/kb/973479 -
How to print the contents of a hard drive?
Title: list of files on a specific drive.
How to print the contents of a hard drive? I would like to be able to remove the old files, but it would be easier if I could print the content rather than scroll through the file by file.
Hello
These should help:
How to save and print a list of directory for a file and the folder of Vista (Windows 7 is the)
same)
http://www.Vistax64.com/tutorials/114593-file-folder-directory-list-print-save.htmlHow to add view and directory of print in the context Menu in Vista and Windows 7 file
http://www.Vistax64.com/tutorials/146031-context-menu-add-view-print-file-directory.htmlUse this free program which is great:
KarenWare - printer - free directory
http://www.KarenWare.com/PowerTools/ptdirprn.aspHow to add the feature print directory for files in Windows XP, Windows Vista or Windows 7
http://support.Microsoft.com/default.aspx/KB/321379I hope this helps.
-
Cannot print the content using Epson Stylus CX4700
Can anyone tell how to get my printer Epson Stylus CX4700 to print?
I can scan from the printer to the computer, but it will not print scanner or computer.
Original title: Epson Stylus CX4700
Hi Thomson,
Welcome and thanks for posting in the Microsoft Community.
From the description, I understand that you are unable to print the content using a printer.
This issue would have occurred due to some hardware problems (printer).
Please provide us with additional information to help you best:
- You did changes to the computer before the show?
- Have you received an error message / error code when you try to print the content?
I suggest you to perform few of the steps mentioned in the article below and check out them if you are able to print the content in case of problems.
Why can I not print?
Hope this information helps. For any other corresponding Windows help, do not hesitate to contact us and we will be happy to help you.
-
Download all the contents of a collection
Hello
Is there a way to download all the contents of a collection at a time? Instead of browse an article for download start.
Thank you
New option added two weeks ago allows it.
Is a collection level option, it defined in the collection properties: 'Allow the user to save the collection of their device' - characteristic expression is "explicit downloads".
Read more here: Digital Publishing Solution help | What's new in this version of DPS 2015
-
You want to print the contents of the textfield.
I want to print the content of the text field with a button. I know how to print a clip. If I turn the text field in a clip, I can't type anything in it, and then I need to print an empty textfield... Help, tip? Thank you.
There should be no problem converting your textfield to a movieclip and then by typing in it. you do not really change it to a movieclip, you just add it to the timeline of the movieclip.
but your textfield must already be in a displayobjectcontainer and so can be added to your printjob. for example, if your textfield (for example, tf) is on the timeline in the scope, you can use:
var pj:PrintJob = new PrintJob();
b.addEventListener (MouseEvent.CLICK, f);
function f(e:MouseEvent):void {}
If (pj.start ()) {}
try {}
pj.addPage (this, Rectangle (tf.x tf.y tf.width, tf.height)) of new;
} catch (error) {}
handle the error
}
PJ. Send();
}
}
-
Print the content of a dynamic text
I can't print the content of a dynamic text
The clip is: var dates: text_box = new boite_texte();
Its content is generated by function:
function onTxtComplete(e:Event):void {}
.....
dates.labelOut.text += (Heading1 + "\n\n" + day1 + "\n");
}
and appears regularly.
Now I want to print the contents of dates.labelOut.text
It works :
function onPrint(e:MouseEvent):void {}
var Note: String = "SOME DUMMY TEXT" + "\n\n\n";...
}
But not with dates.labelOut.text :
function onPrint(e:MouseEvent):void {}
var Note: String = "SOME DUMMY TEXT", "\n\n\n" + dates.labelOut.text;...
}
It is a problem of syntax?
If the trace() works, then printing might work:
var Note: String;
button.addEventListener (MouseEvent.CLICK, onPrint);function onPrint(e:MouseEvent):void {}
var today: Date = new Date();
var Note: String = "EXPRESSION on a daily BASIS" + "" + date + "\n\n\n" + dates.labelOut.text;trace (score)
var printNote:PrintJob = new PrintJob();
If (printNote.start ()) {}
try {}
var pageSprite:Sprite = new Sprite;
var noteText:TextField = new TextField();noteText.multiline = true;
noteText.wordWrap = true;
noteText.width = printNote.paperWidth;
noteText.height = printNote.paperHeight;
noteText.text = notes;
pageSprite.addChild (noteText);
printNote.addPage (pageSprite);
} catch(e:Error) {}
trace ("there was an error");
}
printNote.send ();pageSprite = null;
}
} -
You can print the contents of a blob in Bi Publisher
For example, Bi Publisher generates a pdf file in the apex that allows to print the content of a blob.
Let's say you have a record with test.xls in a blob, then I take the test.xls off the record and have bi publisher print it.
Thank you
DougWhy would you want a PDF print on an Excel file? Why not just open the Excel file in the browser and print it like that? BI Publisher would not understand the content of the Excel file because it includes xml...
Thank you
Tony Miller
Webster, TX -
Edit a music file so I can print the contents of the file list.
How can I print a list of the contents of the my music with wma file. file type?
Hello
Please see the link below.
NOTE: using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.
-
Windows Media Player - print the contents of the library
Hi guys
I have a pretty extensive library of music stored on my PC and run on Windows Media Player 11.
My wife just bought a new MP3 player and I want to select these pieces she wants synched on his device.
I want to do it is have a print to track quotes as they appear in the WMP library so that it can go through and mark the tracks you want she wants. At the moment I can't find a way to do this other than by entering a series of screen shots and pasting in Word.
Any suggestions there or the will of the screenshot is the only way.
I want to avoid having us as well sitting there scroll down the list and choose the tracks as they appear.
See you soon
Hello
WINDOWS MEDIA PLAYER PLAYLIST PRINT
http://www.footballchance.com/WMPplaylist.shtmHow do I print a playlist in Media Player 11 - it comes to the use of the foregoing
http://www.ehow.com/how_5614381_print-playlist-Media-Player-11.htmlPrinting of playlists
http://Askville.Amazon.com/SimilarQuestions.do?req=Windows-Media-Player-11---print-listing-artists-albums-library==============================================
This free program does not print playlists but it offers control over printing file lists.
No longer fumbling with my computer or Windows Explorer, we wish you could print information
all of your files. Directory of Karen printer can print the name of every file on a disk, as well as the file
size, date and time of last modification, and attributes (read-only, hidden, system and Archive)! And
now, the list of files can be sorted by name, size, date created, date last modified, or last access date.
http://www.KarenWare.com/PowerTools/ptdirprn.aspI hope this helps.
Rob - bicycle - Mark Twain said it is good. -
I want to print different playlists that I use in Media Player 11, but there is no print option in Media Player
See you soon
WakdosHello
WINDOWS MEDIA PLAYER PLAYLIST PRINT
http://www.footballchance.com/WMPplaylist.shtmHow do I print a playlist in Media Player 11 - it comes to the use of the foregoing
http://www.ehow.com/how_5614381_print-playlist-Media-Player-11.htmlPrinting of playlists
http://Askville.Amazon.com/SimilarQuestions.do?req=Windows-Media-Player-11---print-listing-artists-albums-library==============================================
This free program does not print playlists but it offers control over printing file lists.
No longer fumbling with my computer or Windows Explorer, we wish you could print information
all of your files. Directory of Karen printer can print the name of every file on a disk, as well as the file
size, date and time of last modification, and attributes (read-only, hidden, system and Archive)! And
now, the list of files can be sorted by name, size, date created, date last modified, or last access date.
http://www.KarenWare.com/PowerTools/ptdirprn.aspI hope this helps.
Rob - bicycle - Mark Twain said it is good. -
Can not print the content of any e-mail
When you try to print an e-mail message only a partf message prints. How can I print full e-mail.
Hi Bob,
1. are you referring to Windows Live Mail?
2 is this problem specific to Windows Live Mail? Have you checked the issue with other applications such as Internet Explorer or Microsoft Word?
If the problem is specific to Windows Live Mail, you can publish the application in instances of Windows Live Mail.
http://answers.Microsoft.com/en-us/windowslive/Forum/LIVEmail?tab=threads
Hope this information helps.
-
Print the contents of the database or by creating a pdf file of him
Gidday guys
Today I am researching using AS3 AIR to format and print data from a database.
He needs to...
-take the data and is in the shape of a selection of page formats
-print it on the printer, or save it in pdf format
I wonder if someone with experience can you please push me in the direction of research just to answer to...
-What is the process of taking data and formatting in an object to print into a pdf file?
-is the purpose you do for printing a sprite? It is for multi page printing, you create several sprites that contain your data in the format in a particular way and then create a multipage out of them.
Bravo for your advice.
Without having to rely on the user having a PDF driver installed on your computer, you will need a library like AlivePDF for him do print in pdf format.
A workflow can be: recover your data via php/Flashvars > fill your prepared model document > use AlivePDF to print to PDF.
Maybe you are looking for
-
How can I fix Safari? Tired of him. Why is it up-to-date with regular updates? Gees... now I have to select categories and communities... Why don't you let me ask a simple question? Everything has to be so hard with Apple.
-
Re-installed Windows XP Media Center Edition and now I can't turn it on with my product key.
I REINSTALL XP MEDIA CENTER EDITION AND I GOT A FEW SCRACHES ON DISK. SO I REPAIRED THE INSTALLATION WITH XP PRO. NOW I CAN'T ACTIVATE WINDOWS TO ALL THE... WHAT CAN I DO TO FIX THIS? original title: REINSTALLED XP MEDIA CENTER EDITION, HAD A GLITCH
-
I am facing a problem when I want to open the WMP it does appear anything (do not open) and when I try to open a media file, then it displays "Server execution failed". Could any body help me solve the problem.
-
What is the frame rate when I using PiP like exit presentation if I presentation codec
-
Lightroom Mobile sync is unusably slow
Synchronization performance Mobile LR is almost unusably bad. Is there a way to improve this?I tried to synchronize the 2000 pictures of my iPhone 6 s + LR Office. It has been three evenings of babysitting this process, and it's even lower to half