Using variable as a table name

hi i want to use a variable as table in plsql block
like
declare cursor c1
select to_char(to_date(substr(appl_uid,21,2),'MM'),'MON')||'_'|| as v_Tab,ename from my_table;
v_ename = varchar(55);
vv_table =varchar(6);
begin
open c1
fetch c1 into vv_table,v_ename
select ename into v_ename from vv_table;
DBMS_OUTPUT.PUT_LINE (v_ename);
close c1
end;
please help me to correct this block

As mentioned by BlueShadow above the following statement will fail if the table has more then one row.
EXECUTE IMMEDIATE 'select ename from ' || vv_table INTO v_ename;So I would suggest you use ref curosr to execute a SELECT dynamically which is likely to return more then one row.
SQL> create table my_table (appl_uid VARCHAR2(30),ename varchar2(30));
Table created.
SQL> insert into my_table values ('123456789012345678901234567890','SCOTT');
1 row created.
SQL> insert into my_table values ('123456789012345678901123456789','WARD');
1 row created.
SQL> create table nov_ (ename varchar2(30));
Table created.
SQL> insert into nov_ values ('SMITH');
1 row created.
SQL> insert into nov_ values ('JAMES');
1 row created.
SQL> insert into nov_ values ('JONES');
1 row created.
SQL> create table dec_ (ename varchar2(30));
Table created.
SQL> insert into dec_ values ('ALLEN');
1 row created.
SQL> insert into dec_ values ('ADAMS');
1 row created.
SQL> insert into dec_ values ('KING');
1 row created.
SQL> commit;
Commit complete.
SQL> set serveroutput on
SQL> declare
  2        cursor c1 is
  3        select to_char(to_date(substr(appl_uid, 21, 2), 'MM'), 'MON') || '_' as v_tab,ename
  4        from my_table;
  5        type ref_cur is ref cursor;
  6        c2 ref_cur;
  7        v_ename   varchar(55);
  8  begin
  9        for rec in c1 loop
10          open c2 for 'select ename from ' || rec.v_tab;
11          DBMS_OUTPUT.PUT_LINE('********************'||rec.v_tab||'********************');
12          loop
13              fetch c2 into v_ename;
14              exit when c2%notfound;
15              DBMS_OUTPUT.PUT_LINE(v_ename);
16          end loop;
17          close c2;
18        end loop;
19 end;
23 /
********************DEC_********************
ALLEN
ADAMS
KING
********************NOV_********************
SMITH
JAMES
JONES
PL/SQL procedure successfully completed.And at last as suggested by fellow members that it is a bad idea, I would agree and suggest you to relook your design.
Edited by: zahid79 on Jul 22, 2010 10:28 PM

Similar Messages

  • Using variable as schema / table names?

    Hello all -
    First time poster :)
    I would like to use PL SQL to do something like so
    --***************RUN MAIN******************
    DEFINE SCHEMA_NAME = 'SCHEMA_NAME' CHAR;
    DEFINE FINAL_TABLE = 'FINAL_TABLE ' CHAR;
    BEGIN
    SELECT DISTINCT COLUMN FROM SCHEMA_NAME.FINAL_TABLE
    END
    However this doesn't work. I've googled and found other ways like producing a prompt but those are always in the string to search for and not the name of the schema or table to run the SQL on. I am not sure if this is even possible. Any help would be appreciated.
    Thanks!
    Edited by: 813738 on Nov 19, 2010 11:02 AM

    Also I am running this in Oracle SQL Developer in the SQL Worksheet not in the commandline.
    This is the error I got.
    Error starting at line 3 in command:
    BEGIN
    CREATE OR REPLACE SYNONYM SCHEMA FOR BMSAPIX_GRPA_DEV.AE_CV185060_FINAL;
    SELECT DISTINCT COLUMN FROM _SCHEMA;
    END
    Error report:
    ORA-06550: line 2, column 3:
    PLS-00103: Encountered the symbol "CREATE" when expecting one of the following:
    ( begin case declare exit for goto if loop mod null pragma
    raise return select update while with <an identifier>
    <a double-quoted delimited-identifier> <a bind variable> <<
    continue close current delete fetch lock insert open rollback
    savepoint set sql execute commit forall merge pipe purge
    06550. 00000 - "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:
    Edited by: 813738 on Nov 19, 2010 1:10 PM Sensitive info

  • Using variables to build table names

    <p><font face="arial,helvetica,sans-serif" size="3">Hi, I&#39;m trying to build a report that I can easily adapt for different tables. For instance I have tables;</font></p><p><font face="arial,helvetica,sans-serif" size="3">cl_fra1_dynamic (France)</font></p><p><font face="arial,helvetica,sans-serif" size="3">cl_fra1_static (France)</font></p><p><font face="arial,helvetica,sans-serif" size="3">cl_ger1_dynamic (Germany)</font></p><p><font face="arial,helvetica,sans-serif" size="3">cl_ger1_static (Germany)</font></p><p><font face="arial,helvetica,sans-serif" size="3">cl_gbr1_dynamic (United Kingdom)</font></p><p><font face="arial,helvetica,sans-serif" size="3">cl_gbr1_static (United Kingdom) </font></p><p><font face="arial,helvetica,sans-serif" size="3">cl_usa1_dynamic (United States)</font></p><p><font face="arial,helvetica,sans-serif" size="3">cl_usa1_static (United States)</font></p><p><font face="Arial" size="3">and so on and on and on and on,</font></p><p><font face="Arial" size="3">All the reports I want to create are exactly the same apart from the table accessed.</font></p><p><font face="Arial" size="3">so in order to get data from  </font></p><p><font face="Arial" size="3">cl_fra1_dynamic.DATA and cl_fra1_static.VALUE I want to use something like, </font></p><p><font face="Arial" size="3"><a href="mailto:cl_{@country}1_dynamic.DATA">cl_{@country}1_dynamic.DATA</a> and <a href="mailto:cl_{@country}1_dynamic.VALUE">cl_{@country}1_dynamic.VALUE</a> where <a href="mailto:{@country">{@country</a>} = fra </font></p><p><font face="Arial" size="3">I hope Im not being to dopy. Quite new to all this - but I do know the database administrator needs shooting!</font></p><p>Im using Crystal 9.2</p><p><font face="Arial" size="3">Cheers,</font></p><p><font face="Arial" size="3">Andrew Holway</font></p>

    <p>Not sure if this will work in 9.2, as I only have CR XI. This is terribly messy, but if you can&#39;t change your data model to put all rows in one table and add a country column, then you can actually add an SQL command object that takes a parameter. Your SQL would be</p><p>select DATA, VALUE </p><p>from cl_{?country}1_dynamic, cl_{?country}1_static </p><p>where cl_{?country}1_dynamic.PKEY = cl_{?country}1_static.FKEY</p><p> </p><p>I think a better option would be to create two views... </p><p>create view dynamic as (select col1, col2, colN, &#39;FRA&#39; as country from cl_fra1_dynamic union select col1, col2, colN, &#39;GER&#39; as country from cl_ger1_dynamic union ...etc.)</p><p>and a corresponding view for the static tables. Use the views and you can use the select expert to limit the countries. </p><p> </p><p>If your DBA won&#39;t make the views for you, select from a derived table in a command object, i.e. make the views temporarily youself. </p>

  • How to use variables in logical file name definition FILE

    Hi Friends,
    How can I use variables in logical file name definition (tcode FILE). The requirement is to pass value in these variables (based on selection criteria), and use it as part of file name. You quick response will be highly appreciated.
    Thanks,
    Kuldeep Joshi

    Hi,
    Thanks for your reply.
    In detail, the scenario is like I have created an Open Hub. Its working fine. Now I am planning to execute this open hub using process chain and for that I have to define the file output on application server along with logical file name (using tcode FILE). The logical file name contains two variables (defined in FILE) i.e. z_dept and z_fiscperiod.
    Filter value in DTP ( I will read these values from Ztable using routine )
    Dept = R&D
    Fisc period = 004/2009
    Variables defined in tcode FILE:
    z_dept for Dept
    z_fiscperiod for Fiscal Period
    Logical file name : <z_dept>_<z_fiscperiod>.csv
    Now the challenge is to populate filter values in these two variables so that the filter value can be used for naming the output file.
    My last option is to read/update SAP standard table used for storing variable values (i.e. PARAMVALUE)
    Please let me know if you can help me in this issue OR is there any standard method/FM to populate value in these variables
    Thanks,
    Kuldeep

  • How to use bind variable value for table name in select statement.

    Hi everyone,
    I am having tough time to use value of bind variable for table name in select statement. I tried &p37_table_name. ,
    :p37_table_name or v('p37_table_name) but none worked.
    Following is the sql for interactive report:
    select * from v('p37_table_name') where key_loc = :P37_KEY_LOC and
    to_char(inspection_dte,'mm/dd/yyyy') = :P37_INSP_DT AND :p37_column_name is not null ;
    I am setting value of p37_table_name in previous page which is atm_state_day_insp.
    Following is error msg:
    "Query cannot be parsed, please check the syntax of your query. (ORA-00933: SQL command not properly ended) "
    Any help would be higly appreciated.
    Raj

    Interestingly enough I always had the same impression that you had to use a function to do this but found out from someone else that all you need to do is change the radio button from Use Query-Specific Column Names and Validate Query to Use Generic Column Names (parse query at runtime only). Apex will substitute your bind variable for you at run-time (something you can't normally do in pl/sql without using dynamic sql)

  • MySQL - In a Query, Using a Variable as a Table Name

    Hello,
    The code I have attached works. However, I would like to
    replace the table name "tractors" with the variable "$result". How
    do I do this? (It doesn't work if I just type "$result" where
    "tractors" is.)
    Thanks,
    John

    ArizonaJohn wrote:
    > The code I have attached works. However, I would like to
    replace the table
    > name "tractors" with the variable "$result". How do I do
    this?
    You can't. In the code you have given $result is a MySQL
    database result
    resource. You need to extract the actual value from the
    result resource
    in the same way as you have done by using
    mysql_fetch_array().
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS4",
    "PHP Solutions" & "PHP Object-Oriented Solutions"
    http://foundationphp.com/

  • Use a variable as a table name with NATIVE SQL

    Hi all,
    I am trying to execute a SELECT statement in order to fetch data from an external Oracle DB table to SAP with the following instructions:
    EXEC SQL.
      SELECT cityfrom, cityto
             INTO STRUCTURE :wa
             FROM spfli
             WHERE mandt  = :sy-mandt AND
                   carrid = :p_carrid AND connid = :p_connid
    ENDEXEC.
    However, I need to indicate the external table name from a variable instead of the solution above. That is, declaring a variable and store the name of the table (e.q. spfli) in it. The resulting ABAP code would be something like:
    EXEC SQL.
      SELECT cityfrom, cityto
             INTO STRUCTURE :wa
             FROM <VARIABLE>
             WHERE mandt  = :sy-mandt AND
                   carrid = :p_carrid AND connid = :p_connid
    ENDEXEC.
    Does anybody know if is possible to do that?
    If not, is there any other solution?
    Thank you in advance

    Yes, as Suhas said, you could use the ADBC API and his class CL_SQL_CONNECTION to achieve this...
    Here is a small example:
    PARAMETERS: p_carrid TYPE spfli-carrid,
                               p_connid TYPE spfli-connid.
    DATA:
      l_con_ref      TYPE REF TO cl_sql_connection,
      l_stmt         TYPE string,
      l_stmt_ref     TYPE REF TO cl_sql_statement,
      l_dref         TYPE REF TO data,
      l_res_ref      TYPE REF TO cl_sql_result_set,
      l_col1         TYPE spfli-carrid,
      l_col2         TYPE spfli-connid,
      l_wa           TYPE spfli.
    CONSTANTS:
      c_tabname  TYPE string VALUE 'SPFLI'.
    * Create the connecction object
    CREATE OBJECT l_con_ref.
    * Create the SQL statement object
    CONCATENATE 'select * from' c_tabname 'where carrid = ? and connid = ?'
           INTO l_stmt SEPARATED BY space.                           "#EC NOTEXT
    l_stmt_ref = l_con_ref->create_statement( ).
    * Bind input variables
    GET REFERENCE OF l_col1 INTO l_dref.
    l_stmt_ref->set_param( l_dref ).
    GET REFERENCE OF l_col2 INTO l_dref.
    l_stmt_ref->set_param( l_dref ).
    * Set the input value and execute the query
    l_col1 = p_carrid.
    l_col2 = p_connid.
    l_res_ref = l_stmt_ref->execute_query( l_stmt ).
    * Set output structure
    GET REFERENCE OF l_wa INTO l_dref.
    l_res_ref->set_param_struct( l_dref ).
    * Show result
    WHILE l_res_ref->next( ) > 0.
      WRITE: / 'Result:', l_wa-carrid, l_wa-connid.
    ENDWHILE.
    * Close the result set object
    l_res_ref->close( ).
    Otherwise you can also use the FM DB_EXECUTE_SQL...
    Kr,
    m.

  • Using variable with the same name as field name?

    I have a complex proc where I have variables with the same name as field name used on a query. something like this:
    SELECT a.id_table WHERE a.id_table = id_table
    where the last id_table is a parameter sent to the proc:
    declare procedure myproc(id_table int)
    Is there any way or notation to declare the variable inside the query as a variable or I have to use a different name?

    Well, variables are not the only thing you have to change if you want to switch to Oracle.
    Although I don't think it is good practice (to use variable name same as column name), here is one example how you can achieve it using EXECUTE IMMEDIATE and bind variable
    SQL> select deptno, count(1)
      2  from scott.emp
      3  group by deptno;
        DEPTNO   COUNT(1)
            30          6
            20          5
    10 3
    SQL> set serveroutput on
    SQL> declare
      2  deptno varchar2(10);
      3  i number;
      4  begin
      5  deptno:=10;
      6  execute immediate
      7  'select count(1) from scott.emp where deptno=:deptno' into i using deptno;
      8  dbms_output.put_line('OUT ---> '||i);
      9  end;
    10  /
    OUT ---> 3
    PL/SQL procedure successfully completed.
    SQL> Message was edited by:
    tekicora
    Message was edited by:
    tekicora

  • Using variable in physical table of type "select"

    Hello!
    I have to use query as physical table (in Administration tool - http://file.qip.ru/file/120930377/8713693/1_online.html):
    SELECT ID, CODE
    FROM TABLE (pkg.output('1','2')) This code works well. I need to insert instead of parameters '1' and '2' session variables, which will be set from Dashboard.
    How to put variable in this query? Variants like @{test} don't work.

    Hi
    I have a working example:
    select * from table(get_emps('VALUEOF(NQ_SESSION.USER)'))
    where
    CREATE OR REPLACE FUNCTION GET_EMPS(P_USER VARCHAR2:='SUPPLIER2')
    RETURN EMP_TYPE_LIST
    IS
    EMPS EMP_TYPE_LIST:=EMP_TYPE_LIST();
    R EMP_TYPE:=EMP_TYPE(NULL,NULL,NULL,NULL,NULL);
    i pls_integer:=0;
    CURSOR C_EMP(C_USER EMPLOYEES.USER_ID%TYPE) IS
    SELECT EMPLOYEE_ID,FIRST_NAME,LAST_NAME,SALARY ,USER_ID
    FROM EMPLOYEES WHERE upper(USER_ID)=upper(C_USER);
    BEGIN
    OPEN C_EMP(P_USER);
    LOOP
    FETCH C_EMP INTO R.EMPLOYEE_ID,R.FIRST_NAME,R.LAST_NAME,R.SALARY,R.USER_ID;
    EXIT WHEN C_EMP%NOTFOUND;
    i:=i+1; emps.extend; EMPS(i):=R;
    END LOOP;
    RETURN EMPS;
    END;
    and
    CREATE OR REPLACE TYPE EMP_TYPE AS OBJECT
    EMPLOYEE_ID NUMBER(6),
    FIRST_NAME VARCHAR2(20),
    LAST_NAME VARCHAR2(25),
    SALARY NUMBER(8,2),
    USER_ID VARCHAR2(30));
    and
    CREATE OR REPLACE TYPE EMP_TYPE_LIST AS TABLE OF EMP_TYPE;
    My employees table contains an extra column, called user_id, which has different values: 'Administrator','SUPPLIER2' and so on
    Best regards
    Laszlo

  • Exception when trying to use 1-char long table name (or bug in ojdbc?)

    Hello,
    I`ve got exception while trying to prepare SQL statement using "prepareStatement(String sql, String columnNames[])"
    Please have a look at the following test
            Connection con = null;
            String tblName = "k";
            try
                Class.forName("oracle.jdbc.driver.OracleDriver");
                con = DriverManager.getConnection("jdbc:oracle:thin:@oracle:1521:server", "usr", "passwd");
                con.prepareStatement("create table "+tblName+"(id number primary key)").execute();
                PreparedStatement stmt = con.prepareStatement("insert into "+tblName+"(id) VALUES (?)", new String[] {"id"});
                stmt.setInt(1, 1);
                stmt.executeUpdate();
            catch (Exception e)
                e.printStackTrace();
            finally
                try
                    con.prepareStatement("drop table " + tblName).execute();
                    con.close();
                catch (SQLException e)
                    e.printStackTrace();
            }The result of the above is the following stacktrace:
    java.sql.SQLException: Invalid argument(s) in call
         at oracle.jdbc.driver.AutoKeyInfo.getTableName(AutoKeyInfo.java:252)
         at oracle.jdbc.driver.T4CConnection.doDescribeTable(T4CConnection.java:3640)
         at oracle.jdbc.driver.PhysicalConnection.prepareStatement(PhysicalConnection.java:6427)
         at X.tst(X.java:22)
         at X.main(X.java:46)Now, if I change tblName to be kk (two characters long), it runs with no exceptions.
    Has anyone ever faced the same problem?
    Looks like a bug in JDBC driver... Or may be it is a known issue which I`m now aware of.
    p.s. I`m using Oracle JDBC v. 11.2.0.1.0.

    Well... this is definitelly not a requirement.
    The code snippet came from the test (junit) for something which is much bigger. And of course the 1-char long table name has nothing to do with desing. At all.
    We have a system where a user defines (named) xml structures, so to say. The structures are then "translated" into DB entities. So the result DB schema is fully auto-generated. The system supports 4 different SQL dialects. Oracle is just one of them.
    Having restrictions like "name of a structure must be at least two characters" is no problem. But I still can`t believe Oracle has such a limitation. It does not sound logical (to me at least). And I had a hope may be someone has an explanation for that thing.
    The code above works just fine if I do not request certain columns back after the statement is executed. (e.g. without the second parameter).
    But anyway... I would post a bug for this, if I knew where to post it to :)
    Thanks.

  • AttachMovie using variable target and source names

    I've frequently used variable names for the target but is it impossible to do this:
    holder.attachMovie(["mcButton"+i], ["box" + i + "_btn"], this.getNextHighestDepth()*200, {_x: arrBtnX[i], _y: arrBtnY[i]});
    I can't get it to work and I haven't been able to find an example.  It doesn't work without the square brackets either.
    Thanks
    Marion

    Thank you very much for replying.  I had tried that before without success but I discovered I had given the 'holder' a different name (doh!)   Now that I am using the correct name, I find that it's working but only the last target movieclip appears.   When I trace(i) I get the full trace.  When I trace(btnHldr["box" + i + "_btn"]._x) I get the correct figures.
    I have double-checked the linkage names for the mcButton0-5 movieclips and they are correct.   I suspect it's looping through and replacing the same source with the target.  I'm a bit puzzled.
    Rgds
    Marion

  • How to use a variable as a table name in PL/SQL?

    Hello all.
    I was given one day to wrote a piece of PL/SQL code to do a query. That is,
    First select two columns from one table and use them to build another table's name, then
         join the two tables. I'm not sure if variables can be used in the select list, if possible,
         how to reference them?
    -- My code is
    DECLARE
         tablename varchar2(40);
         CURSOR c1 IS
    select a.sourcesystemcode, a.adminorganizationno from cdb1.organization_mapping a
    where exists( select 1 from cdb1.organization_mapping b where
    a.cdborganizationno = b.cdborganizationno and a.adminorganizationno != b.adminorganizationno)
    order by a.cdborganizationno,a.adminorganizationno;
         v_src_sys_cod cdb1.organization_mapping.sourcesystemcode%TYPE;
         v_adm_org_no cdb1.organization_mapping.adminorganizationno%TYPE;
    BEGIN
    OPEN c1;
    LOOP
    FETCH c1 INTO v_src_sys_cod, v_adm_org_no;
    EXIT WHEN c1%NOTFOUND;
    tablename := 'ODS1.SRC_' || v_src_sys_cod || v_adm_org_no || 'ACTORG_CURR';
    select c.cdborganizationno, c.sourcesystemcode, c.adminorganizationno, c.sourceorganizationno, d.ibkcde, d.orgnam
    from cdb1.organization_mapping c inner join tablename d on c.sourceorganizationno = d.orgidt;
    END LOOP;
    CLOSE c1;
    END;
    The error message says "... the table or view does not exist... line 18, column 66..."
    It says the variable "tablename" wasn't build or build incorrectly.
    Please give the solution.

    If the TABLEs being queried are already known, and it is just a matter of which one to query, perhaps you can CREATE a VIEW that uses all the TABLEs with a UNION ALL, and include an identifier COLUMN.
    CREATE VIEW SRC_ALL_ACTORG_CURR
    AS
    SELECT 'aa' Name, ibkcde, orgnam FROM SRC_aa_ACTORG_CURR UNION ALL
    SELECT 'bb' Name, ibkcde, orgnam FROM SRC_bb_ACTORG_CURR UNION ALL
    SELECT 'cc' Name, ibkcde, orgnam FROM SRC_cc_ACTORG_CURR UNION ALL
    SELECT 'dd' Name, ibkcde, orgnam FROM SRC_dd_ACTORG_CURR UNION ALL
    SELECT 'ee' Name, ibkcde, orgnam FROM SRC_ee_ACTORG_CURR;
    Then, in you query:
    select c.cdborganizationno, c.sourcesystemcode, c.adminorganizationno, c.sourceorganizationno, d.ibkcde, d.orgnam
    from cdb1.organization_mapping c inner join SRC_ALL_ACTORG_CURR d on c.sourceorganizationno = d.orgidt and d.Name = v_src_sys_cod || v_adm_org_no;

  • How to use a value taken in a variable as a table name in a query?

    I am fetching a value in a variable as:
    <select application_short_name into l_appl_nm from fnd_application where application_id=:p_appl_id>
    Now I need to use the value fetched in variable "l_appl_nm" as a table partition name in next query.
    Can anyone please guide me on this concept.
    Expecting replies asap !!

    I am fetching a value in a variable as:
    <select application_short_name into l_appl_nm from fnd_application where application_id=:p_appl_id>
    Now I need to use the value fetched in variable "l_appl_nm" as a table partition name in next query.
    Wrong.
    This is NOT how partition pruning should be applied.
    Expecting replies asap !!
    In that case, the forum members who provide their experience and knowledge for free, expects you to PAY for that.
    You want make demands on this volunteer forum? Then by the same token, payment demands can be made on you.
    So.. are you going to pay up?

  • PL/SQL - Using a variable as a table name

    I have a procedure like this -
    PROCEDURE insert_food IS
    BEGIN
    INSERT INTO food_table
    SELECT *
    FROM fruit_table;
    END insert_food;
    So this proceudre would insert all the records in the 'fruit_table' into the 'food_table'.
    Would there be any way to store the 'fruit_table' as a variable and use that in the script?
    Something like -
    PROCEDURE insert_food IS
    table_name varchar(11) := 'fruit_table';
    BEGIN
    INSERT INTO food_table
    SELECT *
    FROM table_name;
    END insert_food;
    Any help would be great!

    create or replace PROCEDURE insert_food IS
    table_name1 varchar(11) := 'emp';
    BEGIN
    execute immediate 'INSERT INTO emp2
    SELECT *
    FROM '||table_name1||'';
    commit;
    END insert_food;then
    exec insert_food;

  • Issue using variable in Datastore Resource Name

    I am trying to use a variable - let's call it MyVar - in the resources name of a datastore as the value for a database link that is dynamically generated.
    Let's say I have a hypothetical table called MyTable that may exist in multiple databases and in the Resource Name field of the DataStore definition I have the following syntax: MyTable@#GLOBAL.MyVar
    So I would assume that if the value of MyVar is 'DBLINK' then the end result would be that it would resolve to MyTable@DBLINK
    The issue is that when it is used in an interface where I am trying to create a view from this datastore I get an error because it puts the following value in the FROM clause: "MyTable@#MyVar" . It resolves to that exact value with quotes and all and doesn't resolve the variable name. My question is why is the variable not being replaced with the correct value and also why is it putting quotes around the Resource Name value when using it in an interface.

    Can you try to change the variable name and put it in upper case as well ? Same thing for your table if possible.
    I guess you're using 10g. It's a good practice to always use upper case for your variables because 11g only allows upper case.

Maybe you are looking for

  • Inutilização de NF - Não atualiza ERP - ERP error 104

    Olá! Estamos com um problema na inutilização de uma NF. A mesma teve a inutilização autorizada pelo SEFAZ e consta com o status code 102 no GRC. Porém houve um problema na atualização do ERP e este consta como ERP error 104. Na J1BNFE esta NF aparece

  • Need a little help with Slimbox (Lightbox clone) and Spry data sets

    Hello guys! First of all let me say that I'm not a programmer in any way, shape or form, and somehow I managed to build me a dynamic thumbnail gallery that reads data from an XML file and displays it on my webpage using a Spry data set and a slider w

  • Cannot launch 10g Express Edition Home page

    I have installed Oracle 10g Express Edition yesterday,but cannot launch the home page.My browser is Firefox.Following msg is displayed, Unable to connect Firefox can't establish a connection to the server at 127.0.0.1. * The site could be temporarily

  • Transparency Color Distortion When Printing

    I have designed something in InDesign and included in the template is a transparency that I created in Photoshop. It looks fine on the screen, but when I print the area that is transparent has color distortion. I have a host-based laser printer. Is t

  • Imaging without sysprep

    I have been working on creating windows xp images ready for deployment on a variety of workstations and uploading them to an imaging server. These images are used either for single download or to use for multicast sessions when the operating system b