23.10.2012 Views

Openedge Data Management: SQL Reference - Product ...

Openedge Data Management: SQL Reference - Product ...

Openedge Data Management: SQL Reference - Product ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Java Class <strong>Reference</strong><br />

250<br />

CREATE PROCEDURE test_makeNULL2(<br />

IN char_in CHAR(20)<br />

RESULT ( res_char CHAR(20) , res_vchar VARCHAR(30))<br />

BEGIN<br />

<strong>SQL</strong>ResultSet.set(1,char_in);<br />

<strong>SQL</strong>ResultSet.makeNULL(2);<br />

END<br />

Dh<strong>SQL</strong>ResultSet.set<br />

Sets the field in the currently active row of a procedure’s result set to the specified value (a<br />

literal, procedure variable, or procedure input parameter).<br />

Format<br />

Returns<br />

public void set(int field, Object val)<br />

None<br />

Parameters<br />

field<br />

val<br />

Throws<br />

An integer that specifies which field of the result-set row to set to the value specified<br />

by val. (1 denotes the first field in the row, 2 denotes the second, and so on.)<br />

A literal or the name of a variable or input parameter that contains the value to be<br />

assigned to the field.<br />

Dh<strong>SQL</strong>Exception<br />

Example This code fragment illustrates <strong>SQL</strong>ResultSet.Set:

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!