How do I find out the number of rows in a resultset ?
Without scrolling it.
And explain to me, oh sarcastic one, how it wouldn't be a better idea to put that data into a datastructure and pass that back.1. Performance with very large ResultSet objects for which only sparse data is desired (that's what pages are for).
2. Resource optimization.
3. Efficient sequential processing.
4. The ability to intelligently determine based on resource usage whether to page the results or use your implementation for small ResultSet objects.
Answering your points:
1. I just showed him a very easy way to get the size.
2. I don't see any advantage of a collection (if that's what you were envisioning) over a paged ResultSet. Actually the ResultSet is a collection of sorts.
3. Your data is reliant on the connection initially anyway. The collection would only provide an advantage in the possibly short window while the data was being viewed.
4. You can always resort a ResultSet by requerying.
Similar Messages
-
How can I find out the number of lines in a text file?
How can I find out the number of lines in a text file?
java.io.BufferedReader in = new java.io.BufferedReader( new java.io.FileReader( "YourFile.txt" ) );
int lineCount = 0;
while( in.readLine() != null )
lineCount ++;
System.out.println( "Line Count = " + lineCount ); -
How can I find out the number of pixels a photo has in i photo.
How can I find out the number of pixels a photo has in iphoto.
Do you mean in iPhoto on the MacBook Pro?
The dimensions (width and height iin pixels)are shown in the "Info" panel - multiply the two numbers:
Regards
Léonie
P.S: on an IOS device you see the same information in iPhoto, when you select the photo in an album and click th Info button ( i ). -
How should I find out the number of messages on queue?
I am using iMQ 3.0. Point-to-point messaging.
I have sent some messages to the queue. How should I
find out the number of messages on queue ?You can use MQ's admin tools (imqcmd or imqadmin)
to find that out.
'imqcmd query dst -n queuename -t q' will print out what
you want.
Check the administration guide for more info. -
How do find out the number of rows
how to find out the number of rows of as all tables in a schema with one sql statement
Hi,
What u can try doing is...
declare
numrows number;
begin
for i in (select tname from tab)
loop
execute immideate 'select count(1) into numrows from ' | | i.tname ;
dbms_output.put_line(numrows);
end loop;
end;
Hope this helps. This works only in 8i. So if u need to do the same in 8.0 u have to use dbms_sql pkg.
The logic is same but the way u open ands execute the code is a bit diff.
Best Of Luck.
Regards,
Ganesh R -
How can I find out the first intial row in VA02-output transaction??
How can I find out the first intial row in the screen which appears during sales order change (VA02) >>enter the sales order number >>after the first screen appears >>in the menu bar go to EXTRAS>>OUTPUT>>HEADER>>EDIT??
I have to find out the first row in the OUTPUT column which is empty,then populate it with some data using BDC.
usefull answers will be rewarded.
regards,
Shashank .Pass the sale order number in the object key of NAST table,
if u get 3 entires, then u need to place ur entry in the fourth row in that table control thru BDC.
I think u got the logic.
Regards,
Sujatha. -
How can I find out the apn number of the battery without having it?
I dont have the battery of my iphone 5 anymore but how can i find out the apn number of the battery? I would like to change it but i need to know the apn number to choose the right battery.
Apple does not provide any user-serviceable parts (other than accessories or sometimes a SIM card tray).
Therefore, there are no legitimate iPhone batteries available for sale anywhere.
Anything you find will either be salvaged, counterfeit, or stolen. -
How to find out the number of threads created under java vm at runtime
our application seems to have hit the max number of threads that can be created under vm and the vm will just hang after that. that behavior seems to be consistent from an article that I read earlier.
I wonder any way that java app can find out the number of threads currently created under vm?
thanks in advance!If you are not starting an extra thread group you can use the Thread.activeCount method. But this willnot return all the threads, as there are some jvm threads, i.e. garbage collector. Also if you are running on a Unix type operating system then you can send a signal to the jvm to give you a thread dump, i think the signal is sighup.
If the application is hanging i would of thought that you have a deadlock situation rather then the JVM not being able to create new threads, roughly how many threads should be running ?? -
How to find out the Number range object for Incident number
How to find out the Number range object for Incident number ?
CCIHT_IAL-IALID
regards,
lavanyaHI, an example.
data: vl_num type i,
vl_char(6) type c,
vl_qty type INRI-QUANTITY,
vl_rc type INRI-RETURNCODE.
CALL FUNCTION 'NUMBER_GET_NEXT'
EXPORTING
NR_RANGE_NR = '01'
OBJECT = 'ZRG0000001'
QUANTITY = '1'
SUBOBJECT = ' '
TOYEAR = '0000'
IGNORE_BUFFER = ' '
IMPORTING
NUMBER = vl_num
QUANTITY = vl_qty
RETURNCODE = vl_rc
EXCEPTIONS
INTERVAL_NOT_FOUND = 1
NUMBER_RANGE_NOT_INTERN = 2
OBJECT_NOT_FOUND = 3
QUANTITY_IS_0 = 4
QUANTITY_IS_NOT_1 = 5
INTERVAL_OVERFLOW = 6
BUFFER_OVERFLOW = 7
OTHERS = 8
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
vl_char = vl_num.
write vl_char.
Regard -
How to find out the number of songs in my iTunes 11 library
How to find out the number of songs in my iTunes 11 library
Welcome to the Apple Support Communities
To see the number of songs, go to View menu > Show Status Bar, so the number of songs you have will appear at the bottom of the iTunes window -
How to find out the number of fields in generated proxy structure?
Hi All,
Can anybody help me to find out the number of fields in generated proxy structure in back end system along with controller fields.
i know how to get number of fields in XI system but i want the number of fields in back end system when we generate proxy including automatically generated controller fields.
Thanks in advance.
Regards,
UjwalkumarU mean u want to know at runtime?
Get the output from ur proxy as a string, count the number of "<" characters and divide it by 2. :-P
Of course, you'll have to treat the header fields separately.
Regards,
Henrique. -
I havev installed a new Hard Drive on my laptop but cannot find my Photoshop Elements product box with the serial number to install Elements 10 or Elememts Premier 10. How can I find out the serial / installation codes for these? I saw a reply however, it was not my name and assumed it was for someone else. Now timed out. Can UI still have help on this matter please?
If you registered PSE before, go to the main page of adobe.com, sign in and go to your account and you should find the serial number there in your purchases.
-
How can I find out the total number of gigabytes of all my photos in Iphoto?
How can I find out the total number of gigabytes of all my photos in Iphoto?
In the Event mode open the Info window at the bottom left (Command+i or click on the blue i button). Then select all of the Events. The number of photos and size will be shown in the Info window at the right.
OT -
How do I find out the spec of my old iPod ?
How do I find out the spec of my old iPod ... I can't remember if it's 2nd or 3rd generation ... it's an 8gb, and that's as much info as I can remember/find in the 'About' area of the iPod ... is there a way to find out please?
Append the last three characters of its serial number to http://www.everymac.com/ultimate-mac-lookup/?search_keywords= and load the page.
(119532) -
How do I find out the ID of a reminder created with an applescript?
I created an applescript to create a reminder from Quicksilver, but I want it to show the reminder once it has been created if Reminders was already open. If I use this, then another reminder with the same name sometimes gets shown. How do I find out the ID of a reminder when I create it and set it to a variable so that it will select the reminde I want it to, and if this is not possible, how should I do it?
Here is the applescript:
using terms from application "Quicksilver"
on process text reminderData
if reminderData is "help" then return "Syntax: \"Name:Priority Time Date List Notes\""
set isName to true
set isPriority to false
set hasBeenPriority to false
set priorityEntered to false
set isTime to false
set hasBeenTime to false
set timeEntered to false
set isDate to false
set hasBeenDate to false
set dateEntered to false
set isList to false
set hasBeenList to false
set listEntered to false
set isNotes to false
set reminderName to ""
set reminderPriority to ""
set reminderTime to ""
set reminderDate to ""
set reminderNotes to ""
set reminderList to ""
set reminderDataCharacters to the characters of reminderData
repeat with i from 1 to number of items in reminderDataCharacters
set currentItem to item i of reminderDataCharacters
if isName is false and hasBeenPriority is false then set isPriority to true
if hasBeenPriority and hasBeenTime is false then set isTime to true
if hasBeenTime and hasBeenDate is false then set isDate to true
if hasBeenDate and hasBeenList is false then set isList to true
if hasBeenList then set isNotes to true
if isName then
if currentItem is ":" then
set isName to false
else
set reminderName to reminderName & currentItem
end if
end if
if isPriority then
if currentItem is "!" or currentItem is "-" then
if currentItem is "!" then set reminderPriority to reminderPriority & "!"
set priorityEntered to true
else
if currentItem is " " and priorityEntered then
set isPriority to false
set hasBeenPriority to true
end if
end if
end if
if isTime then
if currentItem is " " then
if timeEntered then
set isTime to false
set hasBeenTime to true
end if
else
if currentItem is not "-" then set reminderTime to reminderTime & currentItem
set timeEntered to true
end if
end if
if isDate then
if currentItem is " " then
if dateEntered then
set isDate to false
set hasBeenDate to true
end if
else
if currentItem is not "-" then set reminderDate to reminderDate & currentItem
set dateEntered to true
end if
end if
if isList then
if currentItem is " " then
if listEntered then
set isList to false
set hasBeenList to true
end if
else
if currentItem is not "-" then set reminderList to reminderList & currentItem
set listEntered to true
end if
end if
if isNotes then set reminderNotes to reminderNotes & currentItem
end repeat
if reminderDate is not "" then
if reminderTime is "" then set reminderTime to time string of (current date)
end if
if reminderTime is not "" and reminderTime does not contain "am" and reminderTime does not contain "pm" then
try
if (item 1 of the characters of reminderTime) as number is greater than or equal to 8 and (item 1 of the characters of reminderTime) as number is less than or equal to 11 then
set reminderTime to reminderTime & "am"
else
set reminderTime to reminderTime & "pm"
end if
end try
end if
try
set reminderDateAndTime to date (date string of (date (reminderDate & "/" & last word of (date string of (current date)))) & " " & time string of (date reminderTime))
on error
set reminderDateAndTime to false
end try
createReminder(reminderName, reminderPriority, reminderNotes, reminderList, reminderDateAndTime)
tell application "Quicksilver" to show notification "The reminder was created successfully" text "Quicksilver successfully created your reminder."
end process text
on createReminder(theName, thePriority, theNotes, theList, theDate)
if thePriority is 1 then set thePriority to 9
if thePriority is "!" then set thePriority to 9
if thePriority is 2 then set thePriority to 5
if thePriority is "!!" then set thePriority to 5
if thePriority is 3 then set thePriority to 1
if thePriority is "!!!" then set thePriority to 1
tell application "System Events"
if exists process "Reminders" then
set wasOpen to true
else
set wasOpen to false
end if
end tell
tell application "Reminders"
if theDate is false then
try
make new reminder at list theList with properties {name:theName, body:theNotes, priority:thePriority}
on error
make new reminder with properties {name:theName, body:theNotes, priority:thePriority}
end try
else
try
make new reminder at list theList with properties {name:theName, body:theNotes, remind me date:theDate, priority:thePriority}
on error
make new reminder with properties {name:theName, body:theNotes, remind me date:theDate, priority:thePriority}
end try
end if
if wasOpen then
show reminder theName
else
quit
end if
end tell
end createReminder
end using terms fromThis seems to find the ID, which is sort of the answer to my question, but I still don't seem to be able to use it to show to right reminder. I get this error:
error "Reminders got an error: Can’t make reminder id \"1E436B16-561C-4F88-8CA6-78029BE68BBF\" into type integer." number -1700 from reminder id "1E436B16-561C-4F88-8CA6-78029BE68BBF" to integer
What is wrong, and how should I fix it?
Here is the createReminder block now:
on createReminder(theName, thePriority, theNotes, theList, theDate)
if thePriority is 1 then set thePriority to 9
if thePriority is "!" then set thePriority to 9
if thePriority is 2 then set thePriority to 5
if thePriority is "!!" then set thePriority to 5
if thePriority is 3 then set thePriority to 1
if thePriority is "!!!" then set thePriority to 1
tell application "System Events"
if exists process "Reminders" then
set wasOpen to true
else
set wasOpen to false
end if
end tell
tell application "Reminders"
if theDate is false then
try
set theReminder to make new reminder at list theList with properties {name:theName, body:theNotes, priority:thePriority}
on error
set theReminder to make new reminder with properties {name:theName, body:theNotes, priority:thePriority}
end try
else
try
set theReminder to make new reminder at list theList with properties {name:theName, body:theNotes, remind me date:theDate, priority:thePriority}
on error
set theReminder to make new reminder with properties {name:theName, body:theNotes, remind me date:theDate, priority:thePriority}
end try
end if
set theID to the id of theReminder
if wasOpen then
show theID
else
quit
end if
end tell
end createReminder
Maybe you are looking for
-
Free (of charge) deliveries
Hello, I have the following scenario: 1.) Customer wants to have a part free of charge which I do not have in stock User does: - VA01 / TA - ME21N (account assignment = customer order number) - MIGO ( GR 101 E ) - VL01N => doesn't affect my mov. avg.
-
Oracle - how to find columns in a table + stored procedures dependent on th
Scenario: I need to list all the columns in a table1 and all stored procedures that depends on those columns of this table1. I need to populate column name and stored procedures to a new table. I created new_table(col1, sProc) and tried to populate t
-
Configuring backup through DB13 on windows system with mssql as database
Hi I m using ecc 5.0 with mssql database on windows system. I have to take backup using DB13. wht configuration steps are there to take backup using db13. plz suggest me the configuration steps. plz do the needfull.
-
How to open a word document from OA page
Hi, I have a requirement where in the file names are displayed in a table .When the user clicks on the file name the file should open .The docs are basically word docs. Any idea how to implement this. I saw a post related to this in which someone sug
-
When I am rearranging my icons on my home screen, the iPhone will not let me fill the screen. There is always one empty space on the bottom row (not the fixed row at the very bottom; rather, the bottom "black background" row). I try to move an icon t