Assign the values of the two variables in a select statement

I'm trying to set two variables in a select statement in my definition of the procedure. I get the error identifier not valid "ATTRIBUTE" running the following code.
create or replace procedure tbl_auth (
Email in varchar2,
UserLevel out number)
as
  v_Email varchar2(100) := lower(Email);
  v_login_chk number := 0;
begin
 select UserLevel into p_UserLevel,
        v_login_chk into v_login_chk
 from tbl_User
 where eMail=v_Email  

exception
 when no_data_found then
  UserLevel := 0;
end tbl_auth;
Can I not connect two different values to two different variables in the same select?

Thank you

Published by: jerry8989 on August 22, 2011 07:06

Published by: jerry8989 on August 22, 2011 07:06

change as follows:

 select UserLevel, v_login_chk into p_UserLevel,
        v_login_chk

IN ONE ALONE is enough.

BTW, don't you have "login Check" column in the "tbl_user"? If you do, your selection should be like this:

...
select UserLevel, loginChk into /* check the column name in your table */
         p_UserLevel, v_login_chk
 from tbl_User
...

Tags: Database

Similar Questions

  • Assign the substitution variable to another variable of substitution with truncation of value

    I launch sql * more script .sql through a competitor job. Simultaneous work provides date a parameter to the script.  Task log displays the date passed to scrpit as:

    Arguments

    ------------

    2013/09/01 00:00:00

    For aesthetic purposes in the position of the output, I want to convert/truncate the string in a format for the end user of the 09/01/2013.

    Try to simply change a variable substitution

    (below does not work, but we hope to Telegraph my intention):

    Undefine Low_date
    Set Low_date = ' 2013-09-01 00:00:00 '
    Undefine Low_date_10
    Set Low_date_10 = "yyyy-mm-ds."

    Select substr ('& Low_Date', 1, 10) in & double Low_date_10;

    Guest of "value of the Variable is: & Low_date_10.
    /

    WHICH PRODUCES:

    old: select substr ('& Low_Date', 1, 10) in & double Low_date_10
    New: select substr ("2013-09-01 00:00:00 ', 1, 10") in yyyy-mm-double ds

    Error from the 8 in the command line:
    Select substr ("2013-09-01 00:00:00 ', 1, 10") in yyyy-mm-double ds
    Error in the command line column: 8:55
    Error report:
    SQL error: ORA-00905: lack of keyword
    00905 00000 - 'lack the key word'
    * Cause:
    * Action:
    old: prompt "value of the Variable is: & Low_date_10.
    New: prompt "value of the Variable is: yyyy-mm-ds."
    "Value of the variable is: yyyy-mm-dd"

    "I need to get to" value of the Variable is: 01/09/2013.

    Hello

    SELECT... IN works in PL/SQL.

    In SQL * Plus, you can use the COLUMN... New_value, like this:

    SET low_date = ' 2013-09-01 00:00:00 '

    COLUMN low_date_10_col new_value by low_date_10

    SELECT REPLACE (SUBSTR ('& Low_Date', 1, 10))
    , '-'
    , '/'
    ) AS low_date_10_col
    DOUBLE;

    Value of the PROMPT Variable is: & Low_date_10

  • If then the clause for a simple select statement.

    Good afternoon

    I'm sure this will be really simple for a person: I have three paintings that I need to access it in a simple select statement. However, I need to make two separate petitions by a field has an entry or not. Here is the code I wrote so far. It is only to retune the ELSE part, which means that I know I'm close, but I know I'm missing something incredibly simple and boring for me right now.

    IF common_event.efeanme IS NULL
    THEN
      SELECT a.num_1 AS "EVENT NUMBER", CONCAT(CONCAT(CONCAT(CONCAT(SUBSTR(a.cdts,5,2), '/'), SUBSTR(a.cdts,7,2)), '/'), SUBSTR(a.cdts,1,4)) AS "EVENT DATE", CONCAT(CONCAT(c.xstreet1, ' / '), c.xstreet2) AS "EVENT LOCATION"
      FROM common_event c JOIN agency_event a ON c.eid=a.eid JOIN disposition_type d ON a.ag_id=d.ag_id
      WHERE a.ag_id='JCSO'
      AND a.lev3='JC3'
      AND a.cdts BETWEEN '20140701' AND '20141001'
      AND d.tycod='CIT'
      ORDER BY a.num_1;
    ELSE
      SELECT a.num_1 AS "EVENT NUMBER", CONCAT(CONCAT(CONCAT(CONCAT(SUBSTR(a.cdts,5,2), '/'), SUBSTR(a.cdts,7,2)), '/'), SUBSTR(a.cdts,1,4)) AS "EVENT DATE", CONCAT(CONCAT(CONCAT(CONCAT(CONCAT(CONCAT(c.estnum, ' '), c.edirpre), ' '), c.efeanme), ' '), c.efeatyp) AS "EVENT LOCATION"
      FROM common_event c JOIN agency_event a ON c.eid=a.eid JOIN disposition_type d ON a.ag_id=d.ag_id
      WHERE a.ag_id='JCSO'
      AND a.lev3='JC3'
      AND a.cdts BETWEEN '20140701' AND '20141001'
      AND d.tycod='CIT'
      ORDER BY a.num_1;
    END IF;
    

    If I run a query on its own, it works as expected. Which means that I don't get something right (in my opinion) in my CASE SO the ELSE clause. As I said, it's probably something so simple I forget only she, but I better ask for a direction somewhat see where I'm going to do it right.

    Thanks in advance for any guidance.

    Tony

    Cant you just do:

    SELECT a.num_1 'EVENT NUMBER. "

    Concat (Concat (Concat (Concat (substr (a.CDTS, 5, 2), ' / '), SUBSTR (a.cdts, 7, 2)), ' / '), SUBSTR (a.cdts, 1, 4)) AS 'EVENT DATE ',.

    -case when c.efeanme IS NULL

    then CONCAT (CONCAT (c.xstreet1, ' /'), c.xstreet2)

    of another CONCAT (CONCAT (CONCAT (CONCAT (CONCAT (CONCAT (c.estnum, ' '), c.edirpre), ' '), c.efeanme), ' '), c.efeatyp)

    end AS 'EVENT ADDRESS'

    OF common_event c

    JOIN THE

    agency_event one

    WE c.eid = a.eid

    JOIN the disposition_type d

    ON a.ag_id = d.ag_id

    WHERE a.ag_id = 'JCSO.

    AND a.lev3 = 'JC3.

    AND a.cdts BETWEEN '20140701' AND '20141001'

    AND d.tycod = 'CIT '.

    ORDER BY a.num_1

    Concerning

    Etbin

    Deleted AND c.efeanme IS NULL

  • JDBC PreparedStatement gives null after the execution of a valid SELECT statement

    Hello

    I have the following code:
        public static String GetJobLogLocation(Connection connection, int jobId) throws SQLException
        {
            String sqlstr = "SELECT LOGFILE_NAME FROM apps.fnd_concurrent_requests WHERE REQUEST_ID = ?";
            PreparedStatement prest = connection.prepareStatement(sqlstr);
            prest.setInt(1, jobId);
            ResultSet rs1 = prest.executeQuery();
            String rv = null;
            if (rs1.next())
            {
                rv = rs1.getString(1);
                System.out.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" + rv);
            }
            rs1.close();
            prest.close();
            return rv;
        }
    As you can see, this function executes a select statement. Before I continue, let me first say that executing the exact same statement in PL/SQL Developer (external program) gives correct/expected results. In addition, run this on my Windows gives correct results environment. I seem to have this problem only on my Unix (SunOS) environment.

    in any case, I get out of this function (running against my Unix environment, of course):

    + > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > + null

    The thing is, it doesn't error out, which means that the result set contains a string, but the string is returned to me with the null value, even if there is a real valid result (that is, in this case, a path).

    Someone has an idea, what happens? I tried to use ojdbc6.jar AND ojdbc14.jar is, with the same results. I just don't understand...

    Thank you.

    Published by: 964530 on 4 January 2013 14:31

    Published by: EJP on 01/07/2013-17:48: added {noformat}
    {noformat} tags and removed your bizarre bold formatting. Please do this properly in future.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

    ASCI says:
    I'm glad that this is a not prove to be a stupid question. At least I'm feeling a little justified due to this fact.

    There is no stupid question...; (o)

    So what remains is: your selection is too early. Can join after insertion, update to each line to trigger the table that loggs insert/update timestamp and the contents of the LOGFIILE_NAME field?

    Good bye
    DPT

  • Using Bind Variable in a SELECT statement

    Hello

    I am trying to build my SQL query running using bind variables and in Oracle® Fusion Middleware Fusion developer Guide for Oracle Application Development Framework 11 g Release 1 (11.1.1) it is said that ' after you define bind variables, the next step is to reference them in the SQL statement. While SQL syntax allows you to bind variables to appear in the SELECT list and in the WHERE clause, you'll generally use them in this context, as part of your WHERE clause. ».

    However, when I try to use bind variables in my SELECT list because I had set a type to the string of the variable variable is inserted with quotes each side for example SELECT TestTable FROM 'Service '. Is it possible to use bind variables to insert a value in my list of selection without the quotes around it?

    Thanks in advance,
    Tom

    Hi Robinst,

    I think you want to set up column name of the table that is not possible using bind variables. With the help of the bind variables you can send a value to the SQL. The String value is therefore always with inverted commas.

    Kind regards

    Branislav

  • How to select the two variables of Recordset

    Parse error: parse error in C:\wamp\www\dotweb\access\agreement_handbook.php on line 72
    I get the above error when I try to run the above page. I do not know how to select a variable that is the compid I get from the url and a specific name of another column called documentname. I know it's a very simple thing and I could do very well with ASP pages, but it's my first time with PHP. Help, please!

    Tuesday, February 17, 2009 20:56:30 + 0000 (UTC), "kmlohr".
    wrote:

    > $query_rsAgreements = sprintf ("SELECT * FROM agreements WHERE the CompId = %s and")
    (' > = 'Manual' DocumentName ", GetSQLValueString ($colname_rsAgreements,"int"));

    Change the line above to:

    $query_rsAgreements = sprintf ("SELECT * FROM agreements WHERE the CompId = %s")
    (and "manual" = DocumentName", GetSQLValueString ($colname_rsAgreements,)
    'int'));

    Gary

  • How to pass the number object type to bind the variable in a select statement

    Hello

    I have a scenario like,

    UI, we store the values in the type of object, and this object type must be spent in a select query to retrieve the data accordingly.

    Is it possible to do so.

    If this isn't the case, please let me know how to take the values of object type and pass to the select query.

    Kind regards

    I found it,

    Object_name ('parameters1', 'parameter2');

  • Need a group of clause for two variables in a table

    I can't find any way to merge the two variables in a group statement with vertical output and horizobtable.
    The statement that I had for a vertical output is (10 gr 2):

    Select to_char (d.begin_interval_time, 'YYYY-MM-DD') as Datenumber,
    w.wait_class as Type,
    round (sum (w.total_waits) / 1024/1024, 0) while "Tot-wait."
    dba_hist_snapshot d, dba_hist_bg_event_summary w
    where d.snap_id = w.snap_id
    To_char (d.begin_interval_time, 'YYYY-MM-DD') group, w.wait_class
    order by to_char (d.begin_interval_time, 'YYYY-MM-DD');

    2010-02-28 system IO 234567
    2010-02-28 user IO 34444
    .
    .
    2010-03-01 system I / 0 773777
    .

    But I wanted to have the following summary output in a SQL:

    User IO system IO Idle commit... and so on
    2010-02-26 3442322 344555 335455 5
    2010-02-27 533222 2233 445455 2334
    2010-02-28 3434444 244444 345555 39
    2010-03-01 34444 55445 3444 534

    Someone has an idea?

    Do you mean that?

    SQL> select to_char(d.begin_interval_time, 'YYYY-MM-DD') as Datenumber,
      2  round(sum(decode(w.wait_class,'Concurrency', w.total_waits/1024/1024, 0)),0) as "Concurrency",
      3  round(sum(decode(w.wait_class,'System I/O', w.total_waits/1024/1024, 0)),0) as "System I/O",
      4  round(sum(decode(w.wait_class,'User I/O', w.total_waits/1024/1024, 0)),0) as "User I/O",
      5  round(sum(decode(w.wait_class,'Configuration', w.total_waits/1024/1024, 0)),0) as "Configuration",
      6  round(sum(decode(w.wait_class,'Other', w.total_waits/1024/1024, 0)),0) as "Other",
      7  round(sum(decode(w.wait_class,'Commit', w.total_waits/1024/1024, 0)),0) as "Commit",
      8  round(sum(decode(w.wait_class,'Idle', w.total_waits/1024/1024, 0)),0) as "Idle"
      9  from dba_hist_snapshot d, dba_hist_bg_event_summary w
     10  where d.snap_id = w.snap_id
     11  group by to_char(d.begin_interval_time, 'YYYY-MM-DD')
     12  order by to_char(d.begin_interval_time, 'YYYY-MM-DD');
    
    DATENUMBER Concurrency System I/O   User I/O Configuration      Other     Commit       Idle
    ---------- ----------- ---------- ---------- ------------- ---------- ---------- ----------
    2010-02-22           1        298          0             0          2          0       2107
    2010-02-23           1        299          0             0          2          0       2114
    2010-02-24           1        300          0             0          2          0       2121
    2010-02-25           1        301          0             0          2          0       2129
    2010-02-26           1        303          0             0          2          0       2136
    2010-02-27           1        304          0             0          2          0       2143
    2010-02-28           1        305          0             0          2          0       2150
    2010-03-01           0        140          0             0          1          0        988
    

    Max
    http://oracleitalia.WordPress.com

  • How to assign the value to the application-level element

    Hello

    I'm learning to APEX.  I use version 4.2.6.

    My question is, I set a text field called 'FINANCIAL_YEAR' in the login page.  I wanted to know how to assign this value to a text element of Application level (on page sent), so that I can get this value through at my request.

    Thank you

    -Anand

    anand_gp wrote:

    Yes, I created a 'text area' under 'HTML' in the 'Home' page  Who accepts the exercise of a table through LOV.  I intend to assign this value to a global variable so that this variable can be read in any of the application to filter the result set from different tables (not yet built the rest of the application).  To do this, I was intending to use "Shared components"-> "Elements of Application".  I'm still not quite sure how it works.

    Start by reading the documentation on elements of application.

    Go to the shared components > Application parts and create your G_FINANCIAL_YEAR item. Value Session State Protection Restricted - can not be set the browser so that the value is not editable by the user, falsification of URLS or scripts.

    On the home page, if there is not already a button to submit the value of the fiscal year, add one in the HTML area, with the Action as a submit Pageclick. Otherwise, you can do without the button and using submit Page in Page Action when the changed value select the parameter in the list so he can undergo.

    Then, in the section of the Page processing, create a calculation:

    Point Type: Application-level element

    Calculate Item: Application: G_FINANCIAL_YEAR

    Point calculation: After submit

    Type of calculation: Value of the element

    Calculation:

    Run the application, select a value in the list of the fiscal year and submit the page. Review of current session state in the viewer of session state by clicking on the link of Session in the toolbar developer. Select the Elements of Application in the view list, and then click set. The element of your application and its current value must be visible. You can now reference value throughout your application by using the appropriate syntax.

    You should also consider if a default value (for example the current year) using a calculation Application from the point of calculation on the new Instance and coordinate the application point and part of the homepage using point application as the Source of value or an expression with Source page element, the value always, replacement of value that exists in the session state.

  • Faced with the question all by merging two variable result sets in BPEL 2.0

    I am facing problem while merging the response of the two variables (operations and list of objects) in BPEL 2.0

    My code snippet is as below:

    <assign name="AssignJobList">
      
    <extensionAssignOperation>
      
    <bpelx:copyList>
      
    <bpelx:from>$InvokeJobDetailsPSGetUpdatedJobObjectsResponse.JobProxyResponse/sfabmabo:Job</bpelx:from>
      
    <bpelx:to>$MergeJobListResponseMessage.JobProxyResponse/sfabmabo:Job</bpelx:to>
      
    </bpelx:copyList>
      
    <bpelx:insertAfter>
      
    <bpelx:from>$InvokeJobDetailsPSGetEffectiveJobObjectsResponse.JobProxyResponse/sfabmabo:Job</bpelx:from>
      
    <bpelx:to>$MergeJobListResponseMessage.JobProxyResponse/sfabmabo:Job[last()]  </bpelx:to>
      
    </bpelx:insertAfter>
     
    </extensionAssignOperation>
    </assign>


    For CopyList operation, its updates the target variable but for the insert after operation on its merger nor her raise an error.

    Could you please help me in the same.

    Thank you

    Hello

    The above problem can be solved by adding a tag for each operation of bpelx as shown below:

    $InvokeJobDetailsPSGetUpdatedJobObjectsResponse.JobProxyResponse / sfabmabo:Job

    $MergeJobListResponseMessage.JobProxyResponse / sfabmabo:Job

    $InvokeJobDetailsPSGetEffectiveJobObjectsResponse.JobProxyResponse / sfabmabo:Job

    $MergeJobListResponseMessage.JobProxyResponse / sfabmabo:Job [last ()]

    Kind regards

  • Assign the activity overwhelming data transformation

    I created a BPEL process that has the following sequence:
    Transform1-> Invoke1-> Transform2-> Invoke2-> Assign--> adapter InvokeB2b

    Now what happens is that the payload created in the first transformation is overwritted after the invoke in the second transformation. The payload created in the second transformation is not to be replaced by the entitlement, so the output load has just the values that were in the last beneficiary. I have the same variable I update in the two transformations and assign. What should I do so that the output contains all values beginning with the first transformation?

    I'd really appreciate a quick response...
    Thank you very much!!
    POOJA-

    Create different variables for each transformation. Within the entitlement, obtain the required data for these two variables (defined for processing) and assign the output variable.

  • Help with the session variable PHP CS5.5 - Please

    Hi all

    I am needing a little help with the help of a session variable, and I hope someone can point me in the right direction.

    I created a PHP page that uses the Dreamweaver 'User authentication' feature and the basics of this works very well, to direct a user to the correct page depending on whether they are or are not a valid user. I want to customize the page 'user valid' with people, user name entered in the authentication of the user table... a seemingly simple task using a session variable, but I just seem not to be able to make it work!

    The generated code for the AU on page 1 is the following:

    <? PHP

    Validate request to connect to this site.

    If (! isset {})

    session_start();

    }

    $loginFormAction = $_SERVER ['PHP_SELF'];

    If (isset($_GET['accesscheck'])) {}

    $_SESSION ['PrevUrl'] = $_GET ['accesscheck"];

    }

    If (isset($_POST['txtfirst_name'])) {}

    $loginUsername = $_POST ['txtfirst_name'];

    $password = $_POST ['txtsurname'];

    $MM_fldUserAuthorization = "";

    $MM_redirectLoginSuccess = "member_update.php";

    $MM_redirectLoginFailed = 'login.php ';

    $MM_redirecttoReferrer = false;

    @mysql_select_db ($database_panto, $panto);

    $LoginRS__query = sprintf ("SELECT firstname, name OF web_access WHERE firstname = %s AND family name = %s",

    GetSQLValueString ($loginUsername, "text"), GetSQLValueString ($password, "text"));

    $LoginRS = mysql_query ($LoginRS__query, $panto) or die (mysql_error ());

    $loginFoundUser = mysql_num_rows ($LoginRS);

    If {($loginFoundUser)

    $loginStrGroup = "";

    If (via PHP_VERSION > = 5.1) {session_regenerate_id (true) ;} else {session_regenerate_id() ;}

    Declare two session variables and assign them

    $_SESSION ['MM_Username'] = $loginUsername;

    $_SESSION ["MM_UserGroup"] = $loginStrGroup;

    If (isset($_SESSION['PrevUrl']) & & false) {}

    $MM_redirectLoginSuccess = $_SESSION ["PrevUrl"];

    }

    Header ("Location:".) $MM_redirectLoginSuccess);

    }

    else {}

    Header ("Location:".) $MM_redirectLoginFailed);

    }

    }

    ? >

    First of all, the text highlighted in red above seems to be setting the session variable that I need. Is this correct?

    If so, what is the code that I need to put on page 2 to use this session variable? or

    I have to do something else on the page 1 to correctly assign the session variable?

    Would be very grateful for your expertise

    Mark

    It seems that you put the columns incorrectly in the user authentication server behavior. This is the SQL query that checks the credentials of the user:

    $LoginRS__query = sprintf ("SELECT firstname, name OF web_access WHERE firstname = %s AND family name = %s",

    GetSQLValueString ($loginUsername, "text"), GetSQLValueString ($password, "text"));

    You are looking for first name and last name, while you should look for the user name and password of the user.

    $_SESSION ['MM_Username"] is a session variable that stores the login name of the user. To use it in a page, all that is needed is the page start with session_start(). You can then echo the value to display.

    If you want to display the person's true name, you must create a recordset in the second page, use of $_SESSION ['MM_Username'] to search for the first name and the patronymic. Alternatively, you can change the code like this (I copied only part of it):

    $LoginRS__query = sprintf ("SELECT firstname, surname OF web_access WHERE firstname = %s AND password is %s",

    GetSQLValueString ($loginUsername, "text"), GetSQLValueString ($password, "text"));

    $LoginRS = mysql_query ($LoginRS__query, $panto) or die (mysql_error ());

    $loginFoundUser = mysql_num_rows ($LoginRS);

    If {($loginFoundUser)

    $loginStrGroup = "";

    $row = mysql_fetch_assoc ($LoginRS);

    $_SESSION ['full_name'] = $row ["FirstName"]. ' ' . $row ['name'];

    If (via PHP_VERSION > = 5.1) {session_regenerate_id (true) ;} else {session_regenerate_id() ;}

    Declare two session variables and assign them

    $_SESSION ['MM_Username"] = $loginUsername;

    $_SESSION ["MM_UserGroup"] = $loginStrGroup;

    You can then use $_SESSION ['full_name'] in a page which begins with session_start().

  • By the way the local variable to sous-suite

    I have a sequence that sets a local variable, Locals.LowPassFreqGhz = 1,800.

    Then it executes 5 subsequences.

    The Local is set to a new value and then the same 5 subsequences are re-run.

    Now I have new model numbers where the pair is different and will soon have models where there are groups of 4 frequencies instead of two. That is why I would like to put the 5 seqs in a following and pass the freq based on a select statement. In my limited understanding and knowledge of TestStand, I think that the sous-suite would have its own Local.variables. How should I move this local to a sous-suite, convert a File.global?

    Thank you

    JVH

    The subsequence could have its own inhabitants, but you must use the parameters to pass to residents for the most part in the subsequence. See Chapter 1 of the section and the reference of TestStand sequences on manual.

  • The addition of '\n' to a specific position in the LONG Variable

    Hello

    I have a requirement where I will read the file and it will contain a field with a data LENGTH. I'm assigning this value in a long Variable. I know that LONG is outdated, but I need to live with it now that there are a lot of changes in multiple procedures.

    Requirement is
    1. the value will be length approximately 8000 characters.

    2. I need to read the value and add a '\n' in every 79th position

    For example, in the 79th, 158th, 237th positions and so on for each 79th position.

    Please help with a solution to achieve this.

    Please let me know for any question about the requirement.

    As mentioned Blu, SQL LONG is obsolete, but it looks like you are using a long Variable. Therefore, specify here. If I understand right, read you file in PL/SQL in the LONG PL/SQL variable (which is nothing but VARCHAR2(32760) ) and then insert into the column. There is no direct relationship between the LONG SQL and PL/SQL LONG, so you can use the VARCHAR2 variable. In addition, you must specify \n. You literally mean \n or \n say CRLF? I'll assume that CRLF:

    SQL > create table tbl (long l);

    Table created.

    SQL > declare
    v_str 2 varchar2 (32760);
    3. start
    4 v_str: = ' I have a requirement where I'll read the file and it will contain a field with a data LENGTH. I'm assigning this value in a long Variable. I know that LONG is outdated, but I need to live with it now that there are a lot of changes in multiple procedures. » ;
    5. Insert
    6 in tbl
    7 values)
    8 regexp_replace (v_str,'(.{78}) ',' \1' |) Chr (13) | 10
    9              );
    10 end;
    11.

    PL/SQL procedure successfully completed.

    SQL > set 1000 long
    SQL > select *.
    2 tbl
    3.

    L
    --------------------------------------------------------------------------------
    I have a requirement where I will read the file and it will contain a field ha
    ving a BIG data. I'm assigning this value in a long Variable. I know that
    LONG is outdated, but I need to live with it now that there are a lot of cha
    NGES in several procedures.

    SQL >

    SY.

  • Result re set assign the question.

    Just a matter of a novice. I have a code like

    ResultSet rs = psmt.executeQuery ("a request here");

    iterate on the rs.

    RS = psmt.executeQuery ("some other request here");

    on Finally,.
    RS. Close();

    My question is will it create two instance on rs and the other closed left and another cavities not blocked or will he close the two ResultSet?

    Kind regards
    A.

    Ananth Durai says:
    The real question is on the issue finally {rs.close}, will it be close instance?

    No, it won't. Close() is called on the currently referenced object. This is why I pointed out that you should close when done with them resources. Before even thinking of assigning the same variable to another instance and before the variable is out of range.

    If you need two sets of results in the same scope, use two variables. You can close both in the same finally block.

    It will cause the memory leak?

    No doubt. I don't do JDBC, so I'm not going to say categorically that it will be.

    DB

Maybe you are looking for

  • Firefox 29.0.1 installer does not not on windows 8.1

    I tried to automatically install the latest firefox but still keeps giving me error. I downloaded the installer in offline mode and tried to run. I had the Windows prompt to accept the installation of the software and then... nothing. The installer n

  • Memory card SD in 5200-902

    Hello My 5200-902 does not recognize the SD card.The SD memory card reader is recognized by the computer, but not the map. The problem occurs in 2 steps,the first step: the computer makes kling klong when I insert the card, but he was not recognized

  • Will be a dual core cpu fit im my Satellite 2410-504

    HI I m thinking of upgrading my processor to dual-core, I have a Satellite S2410-504 socket 478 mPGA, im want to put an Intel core duo sl9bn inside. Will this work? any help please

  • kb310441 microsoft fixed it does not remove the old username of the process after removing the name of the pc.

    Microsoft fixed that it does not remove the name process after removing the name of the pc. How to make an old username of the process? Fix, he changed the name and organization... just not their process attached like taskmanager, explorer.exe, iexpl

  • mysqld.exe

    I use Vista and the computer runs very slowly.  The computer is only a few months old.  Resource monitor shows that the CPU usage is very high, as soon as I turn it - 80-100%.  mysqld.exe is 50% or more.  What can I do to fix this?Thank you!