How to retrieve more then one record from database
I am doing a SELECT FROM WHERE SQL statement on a database which returns more then one record. I want to retrieve certain column values from the selected records. How do I do that? If only one record is returned, I know I can do a data operation with operation set to 'Get-Retrieve Values from Record' and Record to operate on set to 'Current-Use current record'. I need to find out how to configure to data operation window in the case more then one record is returned by the preceding SQL statement. Depending on the number of records returned, I can dynamically create array variables to store the 'to be retrieved' column values, just dont know how to retrieve them.
Any help will be greatly appreciated.
Thanks
Anuj
I apologize for not being clear in explaining my problem, perhaps I should have posted an example. Anyways, I was able to figure out the solution. I was doing an 'Open SQL' statement which was selecting multiple records (rows) from a table in the dB. I was storing the number of records returned in a local variable. Then, I wanted to retrieve certain columns of all the selected rows (records). In the "Data operation", I was choosing the 'Record to operate on' as 'Current-Use Current Record'. Changing this field to 'Next-Fetch next record' fixed the problem. I then retrieved the values of those columns into a dynamically created array variable whose dimensions came from the local variable which stored the number of records returned in the SELECT SQL statement.
Thanks
Anuj
Similar Messages
-
How to call more then one smartforms from SE38 ?
Hello Expertise,
Good Afternoon,
Hope all r fine. Do anybody knows,Is it possible to call more than one smartform from SE38?
If possible then how?
Please help me.
Thanks n regards,
Tripod.Hi,
what you meaning with: call more than one...
call & show as smartform (print preview ) > I think that´s not possible
Call & create PDF > show as PDF in IExplorer ? > Yes could work when you crate the PDF > and send it to different Internet explorer
Call & create PDF > show as PDF in GUI ? > Yes could work when you crate the PDF > and send it to different Containers...
Best Regards
Robert -
How to invoke more then one service from single button click
Hi,
I have created web service data control which contains more then one services.
Now my problem is when I press button, it should take data from my input component and needs to set into multiple services and response of those services should be display to my binding component on the screen.
Regards,
DevangDSee : 9.11 Overriding Built-in Framework Methods
here: http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/bcservices.htm#sm0222
You can have the code that was generated modified to invoke an additional action - you'll need to add the binding to that action to your page. -
Update more then one records in join
How to update more then one records in join query.
means each reocrds have different value.
ThanksCan you give an example to illustrate your question?
-
Is it possible to retrieve report for more then one record at Bi Pub
is it possible to retrieve report for more then one record at a time using BI Publisher on siebel Application
Hi Sudhir,
We have tried this.
I think currently you can query for records you want on UI and run report , then you can see the result set of query in report.
But i think in future releases of BIP the feature to run a report for selected & Multiple Selected records will be provided.
Thanks,
Vamsi -
Insert more then one record on a Form in a Data Block
Hi,
How can I Insert more then one record in the DataBlock of a Form in a WHEN_BUTTON_PRESSED trigger. In the Trigger I have given "commit" but it just saves the record once regardlessly how many times you press the button.
Thanks in advance
KhawarHi,
You said
"**In the Trigger I have given (commit) but it just saves the record once regardlessly how many times you press the button.**"
I think u want to batch mode insertion if m not wrong?
1- Use Insert statment instead of commit and then next record.
Begin
Insert into <table> values (:Blk.Val1,:Blk.Val2,:Blk.Val3,:Blk.Val4);
Create_record;
End;
2-Use another object say button for commit record.
Acknowledege me
Best regards
Khurram Siddiqui -
How to call more then one Function modules at the same time
HI ,
How to call more then one FM at the same time .
Modertor Message: Interview-type Questions are not allowed.
Edited by: kishan P on Jan 2, 2012 2:22 PMThey are a few different models of the MacBook Pro ranging from 15.4" i7's to 17" i7's. I would use the same models together though when imaging them just like I do with PC's. For example I would Ghost 5 Lenovo T420 Thinkpads at the same time which all share the same exact specs and config. Looking to do the same with the MBP. I have .dmg image of OSX 10.8.1 on a firewire drive which I'm using. I image all my MBP's with this drive, the only downside is I have to do each MBP one at a time.
Thanks -
How do you return back one record from a NamingEnumeration
how do you return back one record from a For Loop issue
Posted: Jan 4, 2007 9:13 AM Reply
I have the following piece of code and i want to be able to just return one item...
that is return e.next(); but this line doesnt work for below what is wrong
if (attrs == null) {
System.out.println("No attributes");
} else {
/* Print each attribute */
for (NamingEnumeration ae = attrs.getAll();
ae.hasMore();) {
Attribute attr = (Attribute)ae.next();
System.out.println("attribute: " + attr);
/* print each value */
for (NamingEnumeration e = attr.getAll();
e.hasMore();){
System.out.println("value:- " + e.next()));
return e.next();
}At the end of the loop, the NamingEnumeration has no more elements. You need to call getAll() again.
By the way, please use code tags (above the posting box). You've been here long enough to know that (judging by your registration date). -
How to show more than one record at a form-like style report?
Hi All,
I developed a form-like style report
I want it to show more than one record at once (At the same page)
I tried that by setting the value to "Maximum records per page" property for the repeating frame to 10
but when I close the property palete and open it agian the value is returned to 1 !!!
how to show more than one record at the same page?????
Thank uHi,
there's perhaps another property like "page protect". If than 2 records didn't fit at one page there's a page break. Or is there any object inside the repeating frame with page-break properties? Sorry .. it's like looking into a chrystal ball ...
Regards
Rainer -
How to handle more then one transaction in bdc
how to handle more then one transaction in bdc
Hi vinod,
Call one BDC after the another, Like if u want to create a sales order and then correspondingly display it as well, u can capture the sales order created afer ur first BDC theu the messages mostly in SYMSGV1 and using this u can do a call txn skip first screne of VA03.
If u are talking about session, get 2 session names and move them to different sessions or if both txn are dependant on each other, move it one after the other thru call txn. It is the same, howmany ever trx u wabnt to post thru BDC.
Award points if this helps. -
How to restrict more than one delivery from one sales order.
Hi Guys,
We have a requirement that is, system should not allow more than one delivery from one sales order no even if when there is some line item still to be delivered.
We want only one delivery for one sales order and rest of line items should be treated as rejected.
Kindly help
Thanks in advance,
BaluHi MP,
Its also not working as we have the requirement is that once sales order is saved and one delivery is created then again if we are adding some more item inthe same sales order then system should not allow to create delivery document as one delivery already created.
Thanks,
Balu.
Edited by: Balu Sajja on Aug 30, 2010 1:29 PM -
How to email more than one photo from camera roll
How do e-mail more than one photo from the camera roll at a time?
Go to the camera roll, open the thumbnails, click on the arrow in the top right, select up to 5 photos, click on share in the top left and select email.
-
How to delete more than one workbook from command line
Hi, I'd like to delete more than one workbook from command line:
The following syntax, it doesn't work....but I followed the manual instructions:
dis51adm.exe /connect eul/eul@uatdb /delete /workbook "ALE_TEST_1, ALE_TEST_2" /eul eul /log D:\Ale\delete.log
where:
eul/eul@uatdb: is the db’s schema/user where the EUL is installed;
/delete "ALE_TEST_1, ALE_TEST_2": is the command to delete the workbooks, specified inside the “” (with the relative path)
/log D:\Ale\delete.log: is the command to write a log’s file named “delete.log” to track the action
The log file says:
22/4/2008 4:00:26 μμ
dis51adm.exe /connect /delete /workbook ALE_TEST_1, ALE_TEST_2 /eul eul /log D:\Ale\delete.log
Document ALE_TEST_1, ALE_TEST_2 not found in EUL.
Internal EUL Error: ObjectNotFound - Can't find EUL element
There are 0 eul elements to be deleted.
Completed deleting eul elements.
22/4/2008 4:00:29 μμ
Anyone can tell me how is the right syntax ?
Thanks in advance
AlexHi Rod
I was coming to that conclusion myself but wanted to wait until the other avenues had been exhausted first - aka making sure of the workbook names.
I checked through all of the command line documentation and read nothing which clearly indicated that only one workbook could be processed at a time, other than the fact that the syntax says workbook and not workbooks, which could be a big clue.
I think you are right though in that it has to be one at a time, which would be a pain.
Best wishes
Michael -
How to return more than one record through OUT parameter in procedure
Hi,
I want to create a procedure which accepts one input and returns more than one record as output.
example:
Input = DeptNo
Output= Empno,ename,sal,comm,job
Scenario:
There can be more than one employee in department we pass as the IN parameter. OUT parameter has to return all the records of the corresponding employee details in that department.
Thanks in advance for your help
Regards,
K.Vijay-- I think you can try something like this using ref cursor:
-- create a package for the type ref cursor and execute
CREATE OR REPLACE PACKAGE PACK_REFCURSOR_FOR_TABLES AS
TYPE DATA_TableRows IS REF CURSOR;
END;
-- after executing the package above, create your procedure:
CREATE OR REPLACE PROCEDURE GET_EMP (
IN_nDeptNo IN number,
OUT_Emp OUT PACK_REFCURSOR_FOR_TABLES.DATA_TableRows)
IS
BEGIN
-- leave query open (implicit) as this will return data
OPEN OUT_Emp FOR
SELECT *
FROM tblEmp
WHERE DeptNo = IN_nDeptNo;
END;
--execute the procedure and you're done -
How To connect More Then One database
How To Connect More the One Database In Single form.
I want to use Access And Oracle In the Same Form.
I want to Transfer data from Access file To oracle database.
ChiragHi,
You can do this using EXEC_SQL package. Please see Note 115540.1 on metalink which describes how you can connect to Ms Access and Oracle using EXEC_SQL.
Regards
Kavitha Prakash
Oracle Support
Maybe you are looking for
-
Is there a way to have two payment cards under one apple id
Is there a way to have two payment cards under one apple id?
-
Black login screen, only the mouse appears.
Hello guys, My problem is this, Windows does all the updates normally without any error during the process, but each time the system reboots the machine, Windows logo appears carrying the system and when it arrives at logon screen nothing pops up, on
-
How to solve this problem"exception in thread "main" java.lang.noclassdeff"
I am a tyro of java programming . i downloaded the j2sdk-1_4_2_09-windows-i586-p.exe from www.java.sun.com and installed it at the defaulted path C:\j2sdk1.4.2_09, then i wrote down my first java program as follow: public class hello public static vo
-
Not enought space to save multimedia files before upgrading ios5
itunes try to save multimedia files before upgrading to ios5 on c:\ but there is not enough space my itunes library is on K:\ with a lot of space how to change the location of backup saving
-
A couple of times now I've opened mail in my iPhone to see newly downloaded emails just disappear. I haven't updated since 3.1.3 (7E18) so it's not iso4. Thnx Jerry