Sending multiple rows to result set
Hi,
I want multiple rows to be returned from my pl/sql procedure without using cursor?can I do it? Is there any package for this?
also When I use cursor variable how do I capture that return values?
regards
ragh
First Question:
grin. One really big string and a custom parser.
Seriously... I read something about PL/SQL tables being supported in a late/future release... is that true? Do we still use a ref cursor, or can we pass VARRAYS somehow back to Java?
Third question:
Posted earlier by Mark Tomlinson:
This one does it all. Nothing JDeveloper specific here, all JDBC.
* This sample shows how to call a PL/SQL function that opens
* a cursor and get the cursor back as a Java ResultSet.
import java.sql.*;
import java.io.*;
// Importing the Oracle Jdbc driver package makes the code more
readable
import oracle.jdbc.driver.*;
public class retrefcur_samp
public static void main (String args [])
// throws SQLException
try
// Load the driver
DriverManager.registerDriver(new
oracle.jdbc.driver.OracleDriver());
// Connect to the database
// You can put a database name after the @ sign in the
connection URL.
Connection conn =
DriverManager.getConnection ("jdbc:oracle:oci8:@ora8tst",
"scott", "tiger");
// Create the stored procedure
init (conn);
// Prepare a PL/SQL call
CallableStatement call =
conn.prepareCall ("{ ? = call java_refcursor.job_listing
// Find out all the CLERKs person
call.registerOutParameter (1, OracleTypes.CURSOR);
call.setString (2, "*");
call.execute ();
OracleResultSet rset = (OracleResultSet)call.getObject (1);
// Dump the cursor
while (rset.next ()){
System.out.println (rset.getString ("JOB"));
rset.close();
call.close();
} catch(SQLException esql) {
System.out.println("Trouble in river city ");
System.out.println(esql.toString());
// Utility function to create the stored procedure
static void init (Connection conn)
throws SQLException
Statement stmt = conn.createStatement ();
stmt.execute ("create or replace package java_refcursor as "
+
" type myrctype is ref cursor return
EMP%ROWTYPE; " +
" function job_listing (j varchar2) return
myrctype; " +
"end java_refcursor;");
stmt.execute ("create or replace package body java_refcursor
as " +
" function job_listing (j varchar2) return
myrctype is " +
" rc myrctype; " +
" begin " +
" open rc for select * from emp; " +
" return rc; " +
" end; " +
"end java_refcursor;");
stmt.execute ("create or replace package java_ref_clean as "
+
" type myrctype is ref cursor; " +
" function cleanup (cc myrctype) return
number; " +
"end java_ref_clean;");
stmt.execute ("create or replace package body java_ref_clean
as " +
" function cleanup (cc myrctype) return number
is "+
" result number; " +
" begin " +
" close cc; " +
" end; " +
"end java_ref_clean;");
null
Similar Messages
-
Question:
There is a scenario that users want to send multiple rows returned by Execute SQL Task as Email content to send to someone. With Execute SQL Task, the Full result set is used when the query returns multiple rows, it must map to a variable of the Object data
type, then the return result is a rowset object, so we cannot directly send the result variable as Email content. Is there a way that we can extract the table row values that are stored in the Object variable as Email content to send to someone?
Answer:
To achieve this requirement, we can use a Foreach Loop container to extract the table row values that are stored in the Object variable into package variables, then use a Script Task to write the data stored in packages variables to a variable, and then set
the variable as MessageSource in the Send Mail Task.
Add four variables in the package as below:
Double-click the Execute SQL Task to open the Execute SQL Task Editor, then change the ResultSet property to “Full result set”. Assuming that the SQL Statement like below:
SELECT Category, CntRecords
FROM [table_name]
In the Result Set pane, add a result like below (please note that we must use 0 as the result set name when the result set type is Full result set):
Drag a Foreach Loop Container connects to the Execute SQL Task.
Double-click the Foreach Loop Container to open the Foreach Loop Editor, in the Collection tab, change the Enumerator to Foreach ADO Enumerator, then select User:result as ADO object source variable.
Click the Variable Mappings pane, add two Variables as below:
Drag a Script Task within the Foreach Loop Container.
The C# code that can be used only in SSIS 2008 and above in Script Task as below:
public void Main()
// TODO: Add your code here
Variables varCollection = null;
string message = string.Empty;
Dts.VariableDispenser.LockForWrite("User::Message");
Dts.VariableDispenser.LockForWrite("User::Category");
Dts.VariableDispenser.LockForWrite("User::CntRecords");
Dts.VariableDispenser.GetVariables(ref varCollection);
//Format the query result with tab delimiters
message = string.Format("{0}\t{1}\n",
varCollection["User::Category"].Value,
varCollection["User::CntRecords"].Value
varCollection["User::Message"].Value = varCollection["User::Message"].Value + message;
Dts.TaskResult = (int)ScriptResults.Success;
The VB code that can be used only in SSIS 2005 and above in Script Task as below, please note that in SSIS 2005, we should
change PrecompileScriptIntoBinaryCode property to False and Run64BitRuntime property to False
Public Sub Main()
' Add your code here
Dim varCollection As Variables = Nothing
Dim message As String = String.Empty
Dts.VariableDispenser.LockForWrite("User::Message")
Dts.VariableDispenser.LockForWrite("User::Category")
Dts.VariableDispenser.LockForWrite("User::CntRecords")
Dts.VariableDispenser.GetVariables(varCollection)
'Format the query result with tab delimiters
message = String.Format("{0}" & vbTab & "{1}" & vbLf, varCollection("User::Category").Value, varCollection("User::CntRecords").Value)
varCollection("User::Message").Value = DirectCast(varCollection("User::Message").Value,String) + message
Dts.TaskResult = ScriptResults.Success
End Sub
Drag Send Mail Task to Control Flow pane and connect it to Foreach Loop Container.
Double-click the Send Mail Task to specify the appropriate settings, then in the Expressions tab, use the Message variable as the MessageSource Property as below:
The final design surface like below:
References:
Result Sets in the Execute SQL Task
Applies to:
Integration Services 2005
Integration Services 2008
Integration Services 2008 R2
Integration Services 2012
Integration Services 2014
Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.Thanks,
Is this a supported scenario, or does it use unsupported features?
For example, can we call exec [ReportServer].dbo.AddEvent @EventType='TimedSubscription', @EventData='b64ce7ec-d598-45cd-bbc2-ea202e0c129d'
in a supported way?
Thanks! Josh -
Getting every odd-numbered row from result set
select *
from mytable
where MOD(rownum,2) = 1;
Why does this not give me every odd-numbered row from result set? It returns just 1 row....
Thank uWhen you say MOD(ROWNUM,2)=1 it will list only the first row with rowid which is devisible by 2 and gives a reminder 1.
Just tweak your query with a GROUP BY:
SQL> select rownum from your_table group by rownum having mod(rownum,2) =1;
ROWNUM
1
3
5
7
9
11
13
15
17
19
21
ROWNUM
23
25
27
29
31
33
35
37
39
41
43
etc...
[pre]
Jithendra -
How to - extract query result set in CSV and make multiple files if result set is huge.
I have a query which returns millions of rows. I need to extract those rows in CSV files. Having said that i want to keep these files under a limit of 500 MB . Result set can be distributed among multiples files but each file can not be > 500 MB in size.
How to achieve this?You may use this standard! procedure from Blushadow and produce something useful for your need. https://community.oracle.com/message/6499123#6499123
-
How to get previous row of result set in select query?
I want to access the previous row of an result set obtained yet, in the same selectquery .
How can I do that?Use analytical functions.
For example:
create table top_n_test (
a number,
b varchar2(10)
insert into top_n_test values (1, 'one');
insert into top_n_test values (2, 'two');
insert into top_n_test values (3, 'three');
insert into top_n_test values (4, 'four');
insert into top_n_test values (5, 'five');
insert into top_n_test values (6, 'six');
insert into top_n_test values (7, 'seven');
insert into top_n_test values (8, 'eight');
insert into top_n_test values (9, 'nine');
commit;
select a, b from (
select
a,b,
rank() over (order by b) r
from
top_n_test
where
r<4;
A B
8 eight
5 five
4 fourHTH
Ghulam -
Sending an Event to Result Set iView
Hi,
in the standard MDM Result Set iView, there is a provision to generate an EPCF/URL Event. But is there a way to send an event into this standard result set iView?
I want to create a custom filter in web dynpro and filter the Result Set iView.
Please let me know if you know of a provision to do this.
Regards,
NitinThanks, issue was solved.
Ivan,
I am using the following code:
For Item Details
WDPortalEventing.fire(
"urn:com.sap.pct.mdm.appl.masteriviews",
"selectRecord",
"MDMSystemAlias=SAP_MDM_Repository_Customers&MDMTableName=CUSTOMERS&mdmId="
+ rec.getId() //RecordId.
+ "&RefreshSearch=true");
For resultset
WDPortalEventing.fire(
"urn:com.sap.pct.mdm.appl.masteriviews",
"getRecordByIds",
"MDMSystemAlias=SAP_MDM_Repository_Customers&MDMTableName=CUSTOMERS"
+ "&id="
+ rec.getId()) ; //recordId -
How to send multiple row data into an internal table??
I have a view with table control.i want to select multiple row and send all the row data into an internal table.i am able to select multiple row but all the selected row data is not going to the internal table.....only a particular row data which is lead selected is going.
Do anyone can help me regarding this issue?
Thanks in advance,
Subhasis.Hey,
Some code example:
declaring an internal table and work area to get all the elements from the node.
data : lt_Elements type WDR_CONTEXT_ELEMENT_SET,
ls_Element type WDR_CONTEXT_ELEMENT_SET,
considering flights is my node.
lt_data type sflight.
Node_Flights is the ref of the node to which ur table is binded.
Use Code Inspector to read the node.
lt_Element = Node_Flights->GET_ELEMENTS
loop at lt_elements into ls_Element.
l_bollean = ls_elements->is_selected ( returns abap true/false ).
if l_bollean IS INITIAL.
append ls_Element to lt_data.
endif.
Hope this would help.
Cheers,
Ashish -
Call tp EP and sending multiple rows of records
Hello friends,
I am creating a screen and am sending back to EP an user ID.
However I would like to send Multiple User-Ids.
Below is the code of what AM I doing.
str = userid. " NOTE - I would like to send Multiple IDS.
lv_value_label->set_string_struct_element( element = str
label_name = 'MAINTID' ).
it_result_state-result_state = 'APPROVED'.
APPEND it_result_state TO it_result_states.
CALL METHOD eup_structure_factory=>pack_value_label_to_xml
EXPORTING
iv_value_label = lv_value_label
IMPORTING
ev_xml = str.
CALL FUNCTION 'EUP_STORE_BSP_OUTPUT_DATA'
EXPORTING
iv_process_id = process_id
iv_task_id = task_id
iv_output_value = str
TABLES
it_result_states = it_result_states.Dear Ster,
I think you are having all the user id's in an internal table.
Why dont you loop your internal table and pass those values in the standard FM you represented ('EUP_STORE_BSP_OUTPUT_DATA').
I'm not aware that, whether there is any Standard FM's to be used for sending multiple user ID's. Will check and let you know.
Hope this will be helpful.
Regards,
Gokul.N -
Send multiple rows to database from a dynamic table.
I'm using JSP for my application. I have a table that changes
in size depending on a value a user selects in a drop down list.
They can then enter some values into the table and click the submit
button. I know for whatever reason Dreamweaver only sends the first
row to the database and I've had a hard time finding good
examples/tutorials showing how I could make it send all the rows to
the database.
Is there a way for me to just do a while/for loop taking into
account the number of rows in the table? That would be ideal for me
as it sounds like the simplest method and I'm very new to web
development.
Should I be using the Server Behavior Builder or a Stored
Procedure and if so is there any good examples for those as I've
had a hard time working with any documentation/tutorials I've found
regarding them.
Any help would be greatly appreciated.Hey Baxter, thanks for the response. I guess I should have
been more specific when I said I was new to Web Development. I am
actually in Software Development where I primarily code in Java and
other OO languages. I have worked with a database before in java by
writing my own servlet. I have also done some HTML so jsp is very
good for me as it is mostly java with the odd bit of html
structuring with tables and such.
Languages like PHP and ASP I am not very familiar with and
most of the solutions I find for this very problem revolve around
ASP. I have just found it very hard to find a solution to this
problem. It seems like it isn't talked about very much even in
Dreamweaver's own documentation. If a stored procedure is the only
way to go then I think I can handle it with some guidance if anyone
knows of some tutorials/examples available.
Also is it really not possible to just go into the code and
somehow make it loop through each row in the table and execute a
prepared statement for each row? I've included some code of the
dynamic table I have and as you can see I have a Submit button on
its own outside of the table. If i had it inside then the user
would have to submit each row individually which isn't realistic
when there are many rows of data. Since the Submit is outside of
the while it only gets called once after the table is populated
thus sending only one row of data.
You might want to copy paste the code into a text editor as
some of the lines are long and may be hard to read here. If you
notice any errors in the table itself like mismatching column
headers it is because I changed some column names before attaching
it here so just assume that the table is all built correctly.
PS: I am going to be out of town for five days or so, so if I
don't reply to you right away don't think I disappeared from this
thread. Thanks again.
<div>
<h2>TableData</h2>
<form ACTION="<%=MM_editAction%>" METHOD="POST"
name="tabledata">
<table>
<% if (!Recordset1_isEmpty ) { %>
<tr>
<td class="head">Name1</td>
<td class="head">Name2</td>
<td class="head">Name3</td>
<td class="head">Code1</td>
<td class="head">Code2</td>
<td class="head">Old Status1</td>
<td class="head">New Status1</td>
<td class="head">Old Status2</td>
<td class="head">New Status2</td>
<td class="head">Year</td>
</tr>
<% } /* end !Recordset1_isEmpty */ %>
<% while
((Recordset1_hasData)&&(Repeat1__numRows-- != 0)) { %>
<% if (szin11 ==2) {color11 = "#ECECEC" ;szin11=(0);}
%><tr>
<td><input type="hidden"
value="<%=((((Recordset1_data =
Recordset1.getObject("Name1"))==null ||
Recordset1.wasNull())?"":Recordset1_data))%>" name="Name1"
/><%=(((Recordset1_data =
Recordset1.getObject("Name1"))==null ||
Recordset1.wasNull())?"":Recordset1_data)%></td>
<td><input value="<%=((((Recordset1_data =
Recordset1.getObject("Name2"))==null ||
Recordset1.wasNull())?"":Recordset1_data))%>" name="Name2"
type="hidden" /><%=(((Recordset1_data =
Recordset1.getObject("Name2"))==null ||
Recordset1.wasNull())?"":Recordset1_data)%></td>
<td><input value="<%=((((Recordset1_data =
Recordset1.getObject("Name3"))==null ||
Recordset1.wasNull())?"":Recordset1_data))%>" name="Name3"
type="hidden" /><%=(((Recordset1_data =
Recordset1.getObject("Name3"))==null ||
Recordset1.wasNull())?"":Recordset1_data)%></td>
<input name="Code1" type="hidden"
value="<%=(((Recordset1_data =
Recordset1.getObject("Code1"))==null ||
Recordset1.wasNull())?"":Recordset1_data)%>" />
<td><input value="<%=((((Recordset1_data =
Recordset1.getObject("Code2"))==null ||
Recordset1.wasNull())?"":Recordset1_data))%>" name="Code2"
type="hidden" /><%=(((Recordset1_data =
Recordset1.getObject("Code2"))==null ||
Recordset1.wasNull())?"":Recordset1_data)%></td>
<td><input value="<%=((((Recordset1_data =
Recordset1.getObject("Old Status1"))==null ||
Recordset1.wasNull())?"":Recordset1_data))%>" name="Old Status1"
type="hidden" /><%=(((Recordset1_data =
Recordset1.getObject("Old Status1"))==null ||
Recordset1.wasNull())?"":Recordset1_data)%></td>
<td><input size="10"
value="<%=((((Recordset1_data = Recordset1.getObject("New
Status1"))==null ||
Recordset1.wasNull())?"":Recordset1_data))%>" name="New Status1"
type="hidden" />
<%=(((Recordset1_data = Recordset1.getObject("New
Status1"))==null ||
Recordset1.wasNull())?"":Recordset1_data)%></td>
<td><input name="New Status1" type="text" size="5"
/></td>
<td><input size="10"
value="<%=((((Recordset1_data = Recordset1.getObject("Old
Status2"))==null ||
Recordset1.wasNull())?"":Recordset1_data))%>" name="Old Status2"
type="hidden" />
<%=(((Recordset1_data = Recordset1.getObject("New
Status2"))==null ||
Recordset1.wasNull())?"":Recordset1_data)%></td>
<td><input name="New Status2" type="text" size="5"
/></td>
<td><%=(((Recordset1_data =
Recordset1.getObject("Year"))==null ||
Recordset1.wasNull())?"":Recordset1_data)%>
<input name="Year" type="hidden"
value="<%=(((Recordset1_data =
Recordset1.getObject("Year"))==null ||
Recordset1.wasNull())?"":Recordset1_data)%>"
/></td></tr>
<% if (szin11 ==0) {color11 = "#FFFFFF"; szin11=(0);}
%>
<% szin11++; %>
<%
Repeat1__index++;
Recordset1_hasData = Recordset1.next();
%>
</table>
<p>
Comments<br />
<textarea name="comments" cols="40"
rows="4"></textarea>
</p>
<p>
<input type="submit" value="Submit" />
</p>
<input type="hidden" name="MM_insert" value="tabledata"
/>
</form>
</div> -
Calculated value from multiple rows in selection set
Consider this query
SELECT WELL.UWI
FROM geo_formation A, WELL
WHERE ( (select min(top_depth)
from geo_formation B
where B.uwi = A.uwi
and form_id = 'WDBD' )
(select min(top_depth)
from geo_formation C
where C.uwi = A.uwi
and form_id = 'VKNS' )
) > 10
AND A.uwi = WELL.UWI
AND A.FORM_ID IN ('WDBD','VKNS')
ORDER BY WELL.UWI, A.FORM_ID
The question asked by the query is
Show me all the entities (entities are identified by WELL.UWI)
where the distance between the geological formations (identified by WDBD and VKNS)
is greater than 10
The distance in question of course is calculated in the
(select min(top_depth)
from geo_formation B
where B.uwi = A.uwi
and form_id = 'WDBD' )
(select min(top_depth)
from geo_formation C
where C.uwi = A.uwi
and form_id = 'VKNS' )
portion of the where clause.
** My question:
Is there any way to get this calculated value to be part of the selection list
ie.
SELECT WELL.UWI, 'the calculated value in question'
FROM geo_formation A, WELL ...Thanks Barbara; once again your solution to one of my problems works like a charm.
On top of that, I learned something important; I did not know that one can essentially achieve the same results as creating a temporary table by including the appropriate (select ...) in the from clause.
Thanks again.
<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Barbara Boehmer ([email protected]):
SELECT a.uwi, (bmin - cmin) distance
FROM well a,
(SELECT uwi, MIN (top_depth) bmin
FROM geo_formation
WHERE form_id = 'WDBD'
GROUP BY uwi) b,
(SELECT uwi, MIN (top_depth) cmin
FROM geo_formation
WHERE form_id = 'VKNS'
GROUP BY uwi) c
WHERE b.uwi = a.uwi
AND c.uwi = a.uwi
AND bmin - cmin > 10
ORDER BY a.uwi
/<HR></BLOCKQUOTE>
null -
How to get the total number of rows in result set?
Using JDBC and mysql
There is no method to directly obtain the count of the resultset.
int count = 0;
while( rs.next() )
count++;
}Another way,
Use a [Scrollable ResultSet|http://java.sun.com/j2se/1.4.2/docs/api/java/sql/ResultSet.html]
stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
//Get the resultset
rs.last();
rs.getRow(); -
JDBC- RFC - JDBC How to send result set to rfc ?
Hi Friends ,
I am working on scenario like .
<b> I have to read data from a sql server using select statement and send same data to r3 ( using RFC we are inserting the same as a copy ) .
Then i have have get confirmation from R3 as data inserted succesfully - Flag .Then we have to come back to same table and update one field flag as 'U'.</b>
For this I am using JDBC Sender Adapter and RFC Receiver Adapter .Will i use as Synchronous Interface ?
I think i have to use JDBC Receiver Adapter also to Complete the cycle .
Can you please clarify the following....
1. how is that whole selected data will send to R3 . If i use Select statement in JDBC Sender Adapter it will as resultset .It will contain Multiple Rows right ? Our RFC Will accept the parameter as string .
2. If we use the synchronous Interface will it send row by row from the result send Then get back the result from R3 and come back again to JDBC ( Database ) and update the required field ?
3. In JDBC Sender Adapter , the Update Parameter doing the Updation Part prior to get the status from R3. How to handle this ?
4. Do i need to configur teh separate JDBC Receiver adpater for this updation part ? Then We cann't use Synchronous Interface right ?
5 . Will JDCB Sender Adapter get the result set (by select statement ) and send to r3 as row by row and get the confirmation message as inserted ?
Best Regards .,
V.RangarajanHi Udo ,
Thanks for your reply . If i have used the synchronnous RFC Calls , that RFC will return the flag as 'Y' or 'N' , for Either succesfully inserted or Not successful .
In this synchronous how can i use the JDBC Receiver adapter ?
If 'Y' or 'N' I have to update the<b> same table ,same row</b> which have sent to RFC . My doubt , we are wrirtng the SQL select query as " <b>select * from table name where UpdateStatus is null</b> " .
So it will return multiple rows right ? I have to uses the synchronous response form RFC to update the row of the same table using JDBC Adapter right ?
Can you please explain me little bit more ? I am new to xi .
Best Regards .,
V.Rangarajan -
Hi all,
I am sending one single row from one data base to anotherdata base successfully. But I am not able to send multiple rows to another database.I am using parent and child relationship here.
Could anybody help me to solve this problem?
Thanks ,
Gopi.Hi michal & sunitha,
thanks for ur replies.
Yes in sample mapping it is accepted mulyiple rows.But while executing the scenatio it is saying that run time mapping exception.
This is my source structure :
<?xml version="1.0" encoding="utf-8"?>
<xs:schema elementFormDefault="qualified" attributeFormDefault="unqualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="resultset">
<xs:complexType>
<xs:sequence>
<xs:element name="row" minOccurs="0" maxOccurs="unbounded"
>
<xs:complexType>
<xs:sequence>
<xs:element name="Id" type="xs:unsignedShort"/>
<xs:element name="Name" type="xs:string"/>
<xs:element name="Account_Id" type="xs:unsignedShort"/>
<xs:element name="Actual_Ship_Date" type="xs:string"/>
<xs:element name="Contact_id" type="xs:unsignedShort"/>
<xs:element name="Due_Date" type="xs:string"/>
<xs:element name="End_Date" type="xs:string"/>
<xs:element name="Item_Product_Id" type="xs:unsignedByte"/>
<xs:element name="Quote_Number" type="xs:unsignedByte"/>
<xs:element name="RequestedShipDate" type="xs:string"/>
<xs:element name="Revision" type="xs:string"/>
<xs:element name="SalesRep" type="xs:string"/>
<xs:element name="Service_Line_Total" type="xs:unsignedByte"/>
<xs:element name="Service_Total" type="xs:unsignedByte"/>
<xs:element name="Bill_to_Contact_Id" type="xs:unsignedByte"/>
<xs:element name="Bill_to_Address_Id" type="xs:unsignedByte"/>
<xs:element name="Ship_To_Contact_Id" type="xs:unsignedByte"/>
<xs:element name="Ship_To_Address_Id" type="xs:unsignedByte"/>
<xs:element name="Start_Date" type="xs:string"/>
<xs:element name="Status" type="xs:string"/>
<xs:element name="Status_Order" type="xs:string"/>
<xs:element name="Status_Type" type="xs:string"/>
<xs:element name="Comment" type="xs:string"/>
<xs:element name="Line_Number" type="xs:unsignedByte"/>
<xs:element name="Part_Number" type="xs:unsignedByte"/>
<xs:element name="Product_Id" type="xs:unsignedByte"/>
<xs:element name="Quantity" type="xs:unsignedByte"/>
<xs:element name="Quantity_Requested" type="xs:string"/>
<xs:element name="Unit_of_Measure" type="xs:string"/>
<xs:element name="SalesDocumentNumber" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Thanks & Regards ,
Gopi. -
Hi, I'm just evaluating Numbers and I can't figure out how to insert multiple rows within a set of existing rows. I can see how to add a single row above or below a row, but not how to open up a block to insert multiple rows.
Many thanks, JonathanHi Mark,
Thank you for the response. I hadn't looked at the "Table" menu, I was looking at the popup menu that appears at the front of the row - that menu continues just to offer 'add row'.
It would be good if the help documentation included this information.
Anyway, you tip solves the problem for me. Many thanks. -
JZ0R2 -- No result set for this query
hi,
I'm using this code to update records in the database:
facsk = myArray[ctr];
query = 'excute dp_autogeo_accept" + facsk;
stmt.executeQuery(query);
No records are returned so I'm not sending anything to a result set or trying to read the next string. I get this error: JZ0R2: No result for this query. I'm not sure why the original developer chose to use executeQuery but I've also tried stmt.updateQuery and got this error.
Can someone help me?hi,
I'm using this code to update records in the
database:
facsk = myArray[ctr];
query = 'excute dp_autogeo_accept" +
_accept" + facsk;
stmt.executeQuery(query);
No records are returned so I'm not sending anything
to a result set or trying to read the next string. I
get this error: JZ0R2: No result for this
query. I'm not sure why the original developer
chose to use executeQuery but I've also tried
stmt.updateQuery and got this error.
Can someone help me?when you're executing a query that has no result set use stmt.executeUpdate() instead of stmt.executeQuery()
Maybe you are looking for
-
Help needed finding display port (NOT mini) to VGA adapter please!
I bought a macbook in 2009 and urgently need a VGA adapter (female) but I don't have a mini display port! Help! I can't seem to find an adapters that suit macbooks before the mini dislay port was brought out. Thanks Kirsten
-
Hi, This is on a 2011 macbook pro with mountain lion. I have tried to use two new icc profiles, put them in: library-colorsync-profiles-recommended and while they work in preview, and illustrator, they will not work in photoshop. I go through the p
-
How to delete HFM Application Tables in SQL
Hi Gurus 1.How to delete HFM Application Tables in SQL? Manually its deleting but each application having 120-150 tables? how to do this in a single shot? I have deleted few applications using workspace/ shared services, but still its showing under H
-
Group by and then convert form Row to column
Hi All, below is a transaction table for bank customer. region_id cutomer_id transaction_type transaction_date 101 12345 CC 10-March-2011 101 12345 DC 07-March-2011 101
-
Configure Access Control Owner screen
Hi All, I am working on SAP GRC project and it's very new to me. I have one user and that user has Access control owners screen. This role displaying all the Central Owner in the table. When I click one role than Open button gets activated. When i cl