End of SQL statement error

Hello

I am trying to use a command to update to store the values in the column number of days.

Don't know why it keep saying there is syntax error

It is in the Source region of a report.
Select
"ID."
'' BANK. ''
"FDATE."
"FFICHIER,"
"CLERK."
"MORTGAGE_FILE_NUMBER,"
"MORTGAGOR."
"PROPERTY_ADDRESS,"
"OCCUPATION."
"INSURED."
"COMMISSION."
"READY."
"PM_COST,"
"NUMBER_OF_DAYS."
"PROBLEMATIC."
"DEGENERATE."
"LIST_TERM,"
"CLOSING".
"registration".
UPDATED "REGISTRATION".
"Number_of_Days' = BOX SET
WHEN 'FDATE' IS NULL NULL THEN
Else (to_date ("READY", "MM/DD/YYYY '")-to_date ("FDATE","MM/DD/YYYY '))
END

Then just run it. Nothing else

create or replace trigger "PDBL2_T1".
FRONT
Insert or update on 'PDBL2 '.
for each line
declare
number of v_number_of_days;
Start
IF: NEW. END_DATE IS NULL THEN
v_number_of_days: = NULL;
ON THE OTHER
v_number_of_days: = to_date(:NEW.) End_date, ' DD/MM/YYYY') - to_date(:NEW.) START_DATE, "DD/MM/YYYY");
END IF;
: NEW. NUMBER_OF_DAYS: = v_number_of_days;
end;

Published by: Sheikh Mehabub on August 8, 2012 07:20

Tags: Database

Similar Questions

  • I'm getting "ORA-00900: invalid SQL statement" error. ?

    I installed oracle 11 GR 2. and 'DBMS_METADATA_DIFF.COMPARE_ALTER ('TABLE', 'TBL_A', 'TBL_A','USER1 ','USER2 ')"to see the result as below, but I'm" ORA-00900: invalid SQL statement "error.   Any idea?



    I use:


    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production

    PL/SQL Release 11.2.0.1.0 - Production

    CORE 11.2.0.1.0 Production

    AMT for 32-bit Windows: Version 11.2.0.1.0 - Production

    NLSRTL Version 11.2.0.1.0 - Production




    SQL > desc user1.tbl_a
    Name                                      Null?    Type
    ----------------------------------------- -------- ----------------------------
    FIELD_A1 NOT NULL NUMBER
    FIELD_A2 VARCHAR2 (20)
    FIELD_A4 NOT NULL NUMBER (5.2)
    FIELD_A5 VARCHAR2 (10)
    FIELD_A6 NOT NULL NUMBER (2)

    SQL > desc user2.tbl_a
    Name                                      Null?    Type
    ----------------------------------------- -------- ----------------------------
    FIELD_A1 NOT NULL NUMBER
    FIELD_A2 VARCHAR2 (50)
    FIELD_A3                                           DATE
    FIELD_A4 NUMBER (5.2)
    FIELD_A5 NOT NULL VARCHAR2 (10)




    SQL > select dbms_metadata_diff.compare_alter ('TABLE', 'TBL_A', 'TBL_A', 'USER1', 'USER2') of double

    expected result:

    DBMS_METADATA_DIFF.COMPARE_ALTER ('TABLE', 'TBL_A', 'TBL_A', 'U1', 'U2')
    --------------------------------------------------------------------------------
    ALTER TABLE 'U1 '. "" ADD TBL_A "(DATE OF THE"FIELD_A3")
    ALTER TABLE 'U1 '. "" TBL_A "DROP ("FIELD_A6")
    ALTER TABLE 'U1 '. "" CHANGE TBL_A ' ("FIELD_A2' VARCHAR2 (50))
    ALTER TABLE 'U1 '. "" TBL_A ' CHANGE ("FIELD_A4" NUMBER (5.2) DEFAULT 0)
    ALTER TABLE 'U1 '. "" CHANGE TBL_A ' ('FIELD_A4' NULL)
    ALTER TABLE 'U1 '. "" CHANGE TBL_A ' ('FIELD_A5' ACTIVATE NOT NULL)

    Thanks for the reply rp,

    I got the result using "select dbms_metadata_diff.compare_alter ('TABLE', 'TBL_A', 'TBL_A', 'USER1', 'USER2') from dual"

  • 00900 invalid SQL statement error

    I am myself to write stored procedures, teacher in TOAD 10.5 with Oracle 10 g. I get the error ORA-00900: invalid SQL statement. Here's the code, cut to the minimum sample size strip. I don't see where I'm doing something wrong.

    If I cut out the slider (take it down to just "Begin" and "End"), it runs, but I don't see anything wrong with the cursor.

    Any ideas?

    CREATE OR REPLACE PROCEDURE IN_PROCESS_CASES_BOS
    IS
    V_HELLO VARCHAR2 (10);

    CURSOR C_MAIN IS
    SELECT 'HELLO' FROM DUAL;

    BEGIN

    C_MAIN OPEN;

    LOOP
    EXTRACT THE C_MAIN IN V_HELLO;

    WHEN THE OUTPUT C_MAIN % NOTFOUND;

    END LOOP;

    CLOSE C_MAIN;
    END;
    END IN_PROCESS_CASES_BOS;
    /
    select * from user_errors;
    
    NAME                           TYPE           SEQUENCE       LINE   POSITION
    ------------------------------ ------------ ---------- ---------- ----------
    TEXT
    --------------------------------------------------------------------------------
    ATTRIBUTE MESSAGE_NUMBER
    --------- --------------
    IN_PROCESS_CASES_BOS           PROCEDURE             1         21          1
    PLS-00103: Encountered the symbol "END"
    ERROR                103
    

    You have an extra END; Remove it and the procedure compiles and runs.

  • Get the SQL statement error programmatically

    Hello

    error SQL in the FORMS, you can display the erroneous SQL statement pressing (shift) (Ctrl) E on the screen. Is there a way to get the text of the SQL statement in a PL/SQL function for logging purposes?

    I get the error using SQLERRM, it's not a problem. But how can I get the SQL text of the statement?

    Thanks and regards,

    Sascha

    Sascha,

    You should be able to use the: SYSTEM. System LAST_QUERY variable forms.

    Craig...

  • The SQL statement error - help nicely!

    Was scratchin my head, but cannot yet understand why it's a failure... Try to fill in the use of space for relevant tablespaces: get the below error. Kindly advice?


    9999999.999 free_space_mb column format
    column allocated_mb 9999999.999 format
    used_mb 9999999.999 column format
    column tablespace format a12
    filename format a20 column

    Select ts.name tablespace, file name trim (substr (df.name, 1 100));
    DF.bytes/1024/1024 allocated_mb,
    (((df.bytes/1024/1024) - nvl(sum(dfs.bytes)/1024/1024,0)) used_mb,.
    NVL(sum(DFS.bytes)/1024/1024,0) free_space_mb
    v $ datafile df left outer join dba_free_space dfs
    We df.file # = dfs.file_id join v$ tablespace ts
    We df.ts # = ts.ts #.
    We df.name # = ts.name #.
    and 'ts.name =' DATA_TS
    or 'ts.name =' INDEX_TS
    or 'ts.name =' LOB_TS
    Group of ts.name, df.name, dfs.file_id, df.file #, df.bytes
    order of file name;

    ERROR on line 8:
    ORA-00933: SQL not correctly completed command.

    Hello

    user568296 wrote:
    ...
    Select ts.name tablespace, file name trim (substr (df.name, 1 100));
    DF.bytes/1024/1024 allocated_mb,
    (((df.bytes/1024/1024) - nvl(sum(dfs.bytes)/1024/1024,0)) used_mb,.
    NVL(sum(DFS.bytes)/1024/1024,0) free_space_mb
    v $ datafile df left outer join dba_free_space dfs
    We df.file # = dfs.file_id join v$ tablespace ts
    We df.ts # = ts.ts #.
    We df.name # = ts.name #.
    and 'ts.name =' DATA_TS
    or 'ts.name =' INDEX_TS
    or 'ts.name =' LOB_TS
    Group of ts.name, df.name, dfs.file_id, df.file #, df.bytes
    order of file name;

    ERROR on line 8:
    ORA-00933: SQL not correctly completed command.

    There is a 2nd clause on line 8, WE join the same. 'AND' instead of 'ON', it would make sense to syntaic, but the names of files in v$ datafile are usually superstring of tablespace names in v$ ablespace. In other words, if ts.name (no # at the end) is "DATA_TS", then df.name could be ' D:\ORACLE\ORADATA\DEVELOPMENT\DATA_TS01. DBF'.
    I don't think that you need all of this condition. Try:

    select    ts.name                    tablespace,
           trim (substr (df.name, 1, 100))      filename,
           df.bytes/1024/1024                    allocated_mb,
           ( ( df.bytes / 1024 / 1024)
           - nvl ( sum (dfs.bytes) / 1024 / 1024
                  , 0
                 )
           )                         used_mb,
           nvl ( sum (dfs.bytes) / 1024 / 1024
               , 0
               )                         free_space_mb
    from                     v$datafile          df
    left outer join      dba_free_space          dfs     on     df.file#     = dfs.file_id
    join                   v$tablespace          ts     on     df.ts#          = ts.ts#
    --                                   AND     df.name          = ts.name     -- AND, not ON
                                       and     ts.name          IN ( 'DATA_TS'
                                                         , 'INDEX_TS'
                                                         , 'LOB_TS'
                                                         )
    group by  ts.name,
                 df.name,
           dfs.file_id,
           df.file#,
           df.bytes
    order by  filename;
    

    It's a bad idea to mix AND and gold at the same level in the same query. In this case, you can use the IN operator to avoid the need where. In other cases, use parentheses to isolate the ANDS of ORS.

  • SQL statement error INSERT The conflicted with the FOREIGN KEY constraint

    I recently installed a reporting for vmware vsphere software, but I get a SQL error. I opened a request for assistance with vmware, but so far they have not come up with a solution. The error is caused by: com.microsoft.sqlserver.jdbc.SQLServerException: instruction INSERT The conflicted with the FOREIGN KEY constraint 'FK_CB_VSM_NETWORK_VC_ID '. The conflict occurred in database 'VCChargebackVCC02', table "dbo." " CB_VSM_SERVER', column 'VC_ID '. I don't know a lot about SQL, so I'm lost in the extent of troubleshooting is concerned. If anyone has any ideas I'd love to hear them.

    SQL questions are better posed on Technet.  They are better equipped to manage the

    http://social.technet.Microsoft.com/forums/en-us/categories/

  • SQL statement error

    Hi all


    I have the bit next to the code:

    {if (isset($_GET['record']))}
    $recordEdit = TRUE;
    $sql = "SELECT * FROM titles WHERE the Index =?

    $stmt = $dblink-> stmt_init();
    If ($stmt-> {prepared ($sql))}
    $stmt-> bind_param('i',$_GET['record']);
    $stmt-> bind_result($index,$date,$headline,$description,$newsType,$link);
    $stmt-> execute();
    $stmt-> fetch();

    }

    my code for the $stmt-> prepare ($sql) fails with the following error:

    You have an error in your SQL syntax; consult the manual for your version of the MySQL server for the right syntax to use near 'Index =?'

    How is it, my sql not initialize properly?  I want to bind to the parameter $_Get ['record'], that if I echo on the screen is correct.

    OMG, it has taken a long time for the penny to drop. There is nothing wrong with your basic syntax, but 'Index' should not be used in a column name, because it is a reserved word.

    The best solution is to rename the Index column to something like id or article_id. Otherwise, you must surround the reserved words in backticks:

     $sql = "SELECT * FROM headlines WHERE `Index` =?";
    

    You can find a complete list of words reserved MySQL here: http://dev.mysql.com/doc/refman/5.0/en/reserved-words.html.

  • Word key missing in to_number conversion in the SQL statement select error

    ORA-00905: lack keyword for the below SQL statement error. It should be of to_number (m.EQUIP_SUB_CLASS_ID, '9999')
    between 3800 and the 3699 where Clause. Is that what I miss in the SQL below?

    SELECT  M.EQUIP_NO,M.EQUIP_CLASS_ID, M.EQUIP_DESCR,M.ORG_ID
      from  MAMIS.EQUIP M
     where M.EQUIP_NO in  (  SELECT  M.EQUIP_NO  from  MAMIS.EQUIP M, MAMIS.ORG O 
    where upper(M.ORG_ID) like upper(O.ORG_ID) 
    and length(replace(translate(M.EQUIP_SUB_CLASS_ID, '0123456789', '000000000'), '0')) is null
    and upper(M.fleet_status) like 'ACTIVE'  
    and upper(M.ORG_ID) not like 'NA'  
    and to_number(m.EQUIP_SUB_CLASS_ID , '9999') 
    between 3699 and 3800  )

    Hello

    I don't see obvious errors.

    Whenever you have a problem, please post a full test script that people can run to recreate the problem and test their ideas. Include CREATE TABLE and INSERT statements for all of the tables involved and the results desired from these data. Format your code so people can read and understand.
    See the FAQ forum {message identifier: = 9360002}

    I saw a couple of things you need to know about Oracle, but none of them would cause an error "Missing key word".

    There is no point in using the LIKE operator if you do use wildcards. For example

    upper (M.fleet_status)      like 'ACTIVE'  
    

    is slower than, but otherwise equivalent to

    upper (M.fleet_status)      = 'ACTIVE'  
    

    What are you trying to do here?

    length ( replace ( translate ( M.EQUIP_SUB_CLASS_ID
                                , '0123456789'
                        , '000000000'
                        )
               , '0'
               )
           )               is null
    

    Want to see if m.equip_sub_class_id consists only of numbers, from ' 0 'to 9'?
    If so, you can simply say

    TRANSLATE ( m.equip_sub_class_id
           , 'X0123456789'
           , 'X'
           )          IS NULL
    

    Depending on your front end, you may need a sem, i-colon (;) the end of your query.

  • SQLite SQL syntax error

    Hello

    This SQL statement generates a DatabaseException in my program:

    Statement sAddCurrentDay = dbScoreKeeper.createStatement ("INSERT INTO METRICS VALUES (?,?,?,?,?,?,?)" ");
    sAddCurrentDay.prepare ();

    The DatabaseException is:

    INSERT INTO METRICS VALUES (?,?,?,?,?,?,?): SQL logic error or missing database

    I'm sure that the database is fine. I have previous statements that operate on the database successfully.

    You can see where there is a SQL logic with my SQL statement error?

    Thank you

    OK, I think that I understand it. The problem was with my education where I created the table.

    Here's the original statement. Can you find the problem?

    Statement sCreate2 = dbScoreKeeper.createStatement ("CREATE TABLE METRICS (DATETIME Long," +)
    "Whole COMP_ONTIME +,
    "Whole COMP_LATE +,
    "Whole COMP_TOTAL +,
    "Whole OPEN_ONTIME +.
    "Whole OPEN_PASTDUE +.
    "(OPEN_TOTAL Integer) ');"

    There are a couple of missing commas there. If the table has only 5 columns, when he must have 7 columns.

    Thank you

  • PL/SQL: Statement ignored SQL error (SELECTing row, expression arithmetic/s)

    Quick question, on the execution of the query of the ff, I do

    Select a.column, sum (decode(a.column,'string',1,'etc...')

    But when I include a func or procedure, it won't allow me too and that he would give a PL/SQL: SQL statement ignored error and it will compile only if I remove the first a.column as follows

    Select sum (decode(a.column,'string',1,'etc...')

    Why is it so? And how should it be rewritten to include the select a.column?

    Start

    Select a.gameid, sum (decode(a.nscores,'Perfect',100,'Excellent',95,'Good',80,'Poor',50) 'scores'

    in x,y

    Of...

    where the...

    return x

    end myFunc;


    Fundamentals of the PL/SQL language


    Concerning

    Etbin

  • Error in Trigger (PL/SQL: SQL statement ignored)

    Here are the trigger:

    CREATE OR REPLACE TRIGGER DRUGREPLACEMENT
    AFTER INSERT ON PHARMACEUTICAL PRODUCTS
    REFERENCING AS NEW newDrugs
    FOR EACH LINE
    WHERE (newDrugs.drugname = newDrugs.genericname)
    BEGIN
    UPDATE of prescription
    SET pharmaceuticalid = newDrugs.drugID
    WHERE pharmaceuticalid IN (SELECT pharmaceuticalid FROM prescription drugs WHERE drugid = pharmaceuticalid AND newDrugs.genericname = pharmaceutical.genericname);
    END;

    Error is:
    Error (2.1): PL/SQL: statement ignored
    Error (3.24): PL/SQL: ORA-00904: "NEWDRUGS. "" DRUGID ": invalid identifier

    pharmaceuticalid is a number in my table of prescription.
    drugid is a number; Genericname and drugname are two varchars in my table of pharmaceuticals. No idea why I get these errors? (I tried to put quotes around newdrugs.drugid, but then he said he just 'newdrugs.drugid' is not valid.) Thanks for your help
    -Brian

    Brian,

    I think that uou you will need to put a colon (:)) in front of the alias "newDrugs" which introduces you to the regular: new alias.)

    Toon

  • GETTING AN ERROR - slider 'P_REFCUR' cannot be used in the OPEN dynamic SQL stat

    DECLARE
    create or replace procedure partial_single (p_fileid in NUMBER, p_filename IN VARCHAR2 (2000), p_temptablename IN VARCHAR2 (2000), p_temppartialtablename IN VARCHAR2 (2000), p_retval ON the NUMBER)
    --)

    p_fileid NUMBER;
    p_filename VARCHAR2 (2000);
    p_temptablename VARCHAR2 (2000);
    p_temppartialtablename VARCHAR2 (2000);
    p_retval NUMBER;
    p_refcur types_pkg.return_cur;
    v_strquery varchar2 (4000);

    BEGIN

    p_fileid: = 5080;
    p_filename: = "TAGSUR1HM2011013111160838654.000019265";
    -p_temptablename: = "TEMP_RECORDS_MED_0004";
    p_temptablename: = 'TEMP_RECORDS_MED_DATE ';
    p_temppartialtablename: = 'TEMP_MED_PARTIAL_RECORDS_0002 ';
    p_retval: = 0;


    v_strquery: = 'SELECT imsi, connectedcallingnumber, callstart MIN (calleventstarttimestamp), SUM (calleventduration), MAX (sequence_number) sequencenumber, msisdn, max (callreleasetime) callreleasetime period';
    v_strquery: = v_strquery | ' A ' | p_temppartialtablename | ' GROUP BY connectedcallingnumber, imsi, msisdn';

    OPEN p_refcur - GETTING AN ERROR - slider 'P_REFCUR' cannot be used in a dynamic OPEN SQL statement
    FOR v_strquery;

    FOR CC IN (SELECT imsi,
    connectedcallingnumber,
    Callstart MIN (calleventstarttimestamp),
    Duration of the SUM (calleventduration),
    SequenceNumber MAX (sequence_number),
    MSISDN,
    Max (callreleasetime) callreleasetime
    OF TEMP_MED_PARTIAL_RECORDS_0002
    GROUP BY connectedcallingnumber, imsi, msisdn)

    LOOP

    UPDATE TEMP_RECORDS_MED_DATE
    SET calleventstarttimestamp = cc.callstart,
    calleventduration = calleventduration + cc.duration
    WHERE connectedcallingnumber = cc.connectedcallingnumber
    AND imsi = cc.imsi
    AND sequencenumber = cc.sequencenumber + 1
    AND msisdn = cc.msisdn
    AND calleventstarttimestamp = cc.callreleasetime;


    IF SQL % ROWCOUNT > 0
    THEN
    UPDATE TEMP_MED_PARTIAL_RECORDS_0002
    SET isprocessed = 1
    WHERE connectedcallingnumber = cc.connectedcallingnumber
    AND imsi = cc.imsi
    AND msisdn = cc.msisdn;
    - AND callreleasetime = cc.callreleasetime;

    ON THE OTHER

    UPDATE TEMP_MED_PARTIAL_RECORDS_0002
    SET calleventduration = calleventduration + cc.duration
    IMSI WHERE = cc.imsi
    AND msisdn = cc.msisdn
    AND callreleasetime = cc.callreleasetime
    AND calleventduration! = cc.duration;


    END IF;

    END LOOP;


    REMOVE FROM TEMP_MED_PARTIAL_RECORDS_0002
    WHERE isprocessed = 1;


    p_retval: = 0;

    -VALIDATION;
    / * EXCEPTION
    WHILE OTHERS
    THEN
    -RESTORATION;
    p_retval: = 1;
    p3_errorlog ("partial" p_fileid, SQLERRM, |) ':' || p_filename);
    COMMIT;
    */
    END;

    Is - what your refcursor has a return type? In this case you can not open it with dynamic SQL. Change the Refcursor as a weakly typed cursor and give it a try.

  • to DECLARE * ERROR at line 1: ORA-00900: invalid SQL statement

    This works fine when I use the System user to create a schema and then run this script.
    When I create another user with grant connect, resources, create view permissions I get this error:

    DECLARE
    *

    ERROR on line 1:
    ORA-00900: invalid SQL statement
    ORA-06512: at...


    DECLARE
    ID MY_TABLE.ID%TYPE;
    tNom my_table. % TABLENAME TYPE;
    PName MY_TABLE_TWO. PROPERTYNAME % TYPE;
    CURSOR c1 IS
    SELECT distinct evt.id, evt. TABLENAME, vid.propertyname
    FROM my_table evt, vid MY_TABLE_TWO
    WHERE the evt. COL_1 = 1
    AND evt. COL_2 = vid. COL_2
    and not exists (select facts FROM MY_TABLE_THREE 1)
    where evt.id = facts.eventid and facts.displayname = vid.propertyname);
    BEGIN
    OPEN c1;
    LOOP
    FETCH c1 INTO id, tNom, pname;
    OUTPUT WHEN c1% NOTFOUND;
    INSERT INTO MY_TABLE_THREE (ID, COLUMNLENGTH)
    VALUES (S_ANALYTICS_SEQUENCE.nextval, 255);
    RUN IMMEDIATELY 'ALTER TABLE ' | tNom | 'Add ' | PName | ' _ NVARCHAR2 (255);
    END LOOP;
    CLOSE c1;
    END;

    Hello

    Maybe missing a privilege. If I were you, I'll try this first:

    DECLARE
       id    MY_TABLE.ID%TYPE;
       tname MY_TABLE.TABLENAME%TYPE;
       pname MY_TABLE_TWO.PROPERTYNAME%TYPE;
       CURSOR c1 IS
          SELECT DISTINCT evt.id,
                          evt.TABLENAME,
                          vid.propertyname
            FROM MY_TABLE     evt,
                 MY_TABLE_TWO vid
           WHERE evt.COL_1 = 1
             AND evt.COL_2 = vid.COL_2
             AND NOT EXISTS (SELECT 1
                    FROM MY_TABLE_THREE facts
                   WHERE evt.id = facts.eventid
                     AND facts.displayname = vid.propertyname);
    BEGIN
       OPEN c1;
       LOOP
          FETCH c1
             INTO id, tname, pname;
          EXIT WHEN c1%NOTFOUND;
          INSERT INTO MY_TABLE_THREE
             (ID,
              COLUMNLENGTH)
          VALUES
             (S_ANALYTICS_SEQUENCE.NEXTVAL,
              255);
          DBMS_OUTPUT.put_line('ALTER TABLE ' || tname || ' add ' || pname ||
                               '_ NVARCHAR2(255)');
          --EXECUTE IMMEDIATE 'ALTER TABLE ' || tname || ' add ' || pname || '_ NVARCHAR2(255)';
       END LOOP;
       CLOSE c1;
    EXCEPTION
       WHEN OTHERS THEN
          DBMS_OUTPUT.put_line(SQLERRM);
    END;
    /
    

    Using this approach, you can see the sentences to run without run, I also added an exception block.

    Kind regards

  • error: PL/SQL statement ignored

    In the code below, I get 3 errors:
    a. PL/SQL statement ignored
    b. PLS-00201
    c. PL/SQL: ORA-00904: invalid identifier

    Help, please. Thank you


    =========================================
    Package body:
    =========================================
    create or replace package BODY manage_students
    as
    procedure find_sname
    (i_student_id IN student.student_id%TYPE,
    o_first_name ON student.first_name%TYPE
    o_last_name ON student.last_name%TYPE)
    IS
    v_student_id student.student_id%TYPE;
    BEGIN
    Select first_name, last_name
    in o_first_name, o_last_name
    the student
    where student_id = i_student_id;
    exception
    while others
    then
    DBMS_OUTPUT. Put_line (' error in search of student_id: ' | v_student_id);
    end find_sname;

    function id_is_good
    (i_student_id to student.student_id%TYPE)
    Returns BOOLEAN
    IS
    number of v_id_cnt;
    Start
    Select count (*)
    in v_in_cnt
    the student
    where student_id = i_student_id;
    return 1 = v_id_cnt;
    EXCEPTION
    while others then
    return FALSE;.
    end id_is_good;
    END manage_students;

    /

    =========================
    Package specifications:
    =========================
    Set serveroutput on
    create or replace package manage_students
    as
    procedure find_sname
    (i_student_id IN student.student_id%TYPE,
    o_first_name ON student.first_name%TYPE
    o_last_name ON student.last_name%TYPE
    );
    function id_is_good
    (i_student_id IN student.student_id%TYPE)
    RETURN A BOOLEAN VALUE;
    END manage_students;

    /

    Published by: [email protected] on March 19, 2009 06:03

    Published by: [email protected] on March 19, 2009 06:03

    Perhaps here:

    number of v_id_cnt; ----
    Start
    Select count (*)
    in v_in_cnt-

  • Connection failed SQL State 08001 SQL Server Error 10061 SQL Native Client TCP provider no. could be made because the target machine actively refused it

    Wandering SQL Native Client Datasource - apparently, it's a pretty common problem and I see several resolutions to it.  This problem started for our long company until I started working here.  We do not allow remote connections.  JDE Enterprise Server and SQL server are on the same subnet.  Users are on a different subnet.  SQL Server gets this message tries to connect to the Server Enterprise JDE:

    Connection failed: State 08001 ' SQL': SQL Server Error 10061: Microsoft SQL Native Client TCP provider: no connection could be made because the target machine actively refused it.

    I tried several suggested solutions and do not get the case. Any help is appreciated. Thank you, Sophie

    Hello

    The issue of Windows XP, you have posted is better suited for the IT Pro TechNet public. Please ask your question in the SQL Serversupport for assistance.

    Hope the helps of information.

    Concerning
    Joel S
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for

  • IMAP e-mail accounts went into Mail after upgrade of the Sierra

    I have three accounts of mail main I use, everything set up as IMAP accounts on my server of companies. I access it with four devices - 2013 iMac, iPhone 6, iPad (generation 3d) and a MacBook Pro 2010. I did the upgrade of Sierra on the MacBook Pro a

  • HP Elite-book 6930p - my HARD drive has locked. Please help me

    I entered the configuration of the Bios (F10) and joined the security and configuration of the BIOS administrator password and created a password and off the laptop. then about two hours and turned on the laptop. I saw at first Portable hard drive Pa

  • HP envy 1109 tx 32 GB SSD not showning

    Hello I buy laptop 15.5 inch HP envy 1109 tx, said, it included 32 GB SSD + 500 GB Sata, but I couldn't see SSD of 32 GB. I also checked in Diskmanagement, but I could not there also. also, I couldn't find the drivers of windows 8 for this laptop. Pl

  • cost to replace screen iphone 6

    I sent my Iphone 6 Apple for the slightly cracked screen replacement. I thought to pay only repair without asking, instead, they sent me a refurbished phone, making me pay a figure much higher than the repair. Why do not I informed? I think that's no

  • A Dell laptop; After a host of updates for my XP Professional, I can't locate a folder

    After a host of updates for my XP Professional, I can't locate a folder with most of my files and photos. This folder was sitting on the desk. How to find or restore my folder?