Name of the table - low, capital letters

Hello

Thank you for reading my post.
--------------------------------------------------------------------------------------------------------------------------------
(1) I created a table:

CREATE TABLE radios (name varchar2 (20), varchar2 (20)) frequency;

Note that the table name is tiny ("radio").
--------------------------------------------------------------------------------------------------------------------------------
(2) I added a constraint on the column 'name ':

ALTER TABLE ADD CONSTRAINT name_pk KEY (name) PRIMARY radio;
--------------------------------------------------------------------------------------------------------------------------------
(3) now, I want to list the existing constraints for the table "radio".

3.a) if I use low table name of case, the result is empty:

SQL > SELECT constraint_name, constraint_type
From user_constraints
WHERE table_name = 'radio '.

no selected line

3.b) now, if I use the high table name of case, I get what I'm looking for:

SQL > SELECT constraint_name, constraint_type
From user_constraints
WHERE table_name = 'RADIOS ';

CONSTRAINT_NAME C
NAME_PK P
--------------------------------------------------------------------------------------------------------------------------------
Can you explain this phenomenon?
I mean: I've created a tiny name table so why it works
with the formulation of capital letters?

Have we not create uppercase table constantly names?
How to create table names: you create uppercase?

Thank you for your help.
Sincerely,
--
Lmhelp

All the names of the objects are stored in uppercase letters, unles you use double quotation marks to create:

SQL > create table TesT_1 (number);

Table created.

SQL > create table 'TesT_2' (a number);

Table created.

SQL > select table_name from user_tables where table_name like '%1' or table_name like '%2 ';

TABLE-NAME
------------------------------
TEST_1
TesT_2

More details:

http://download.Oracle.com/docs/CD/B28359_01/server.111/b28286/sql_elements008.htm

Published by: SKU on December 9, 2009 02:42

Tags: Database

Similar Questions

  • The name of the Table may be 2 lines

    Can the name of the Table "numbers be 2 lines?

    I don't seem to be able to make a table name two lines.  You can use a box of text instead, while hiding the name of the table:

    Disable the table name in the Table formatter (lower-right)

    Add a text box

  • How can I identify all the words in capital letters and change to initcaps?

    Hello

    I'm using Oracle 11.g

    I have a table with multiple textual data varchar2 columns.  There are several words that are all uppercase.  In all cases, these capital words should be replaced by different cases (for example, HELLO Hello).  How find the capitalized words in all the lines and change them to mixed-case?

    Thanks for your help.

    The rownum in your update statement is probably taken as the virtual rownum http://docs.oracle.com/cd/E11882_01/server.112/e41084/pseudocolumns009.htm#SQLRF00255

    This is probably the reason why the script compiles, but the update does not work as there is no column named rownum in your table (even if it exists, rename it as is among the reserved words http://docs.oracle.com/cd/E11882_01/server.112/e41084/ap_keywd001.htm#SQLRF55621)

    trying to avoid loops to the extent possible, that I see it more as

    CREATE TABLE 'LITURGY_READING_COPY' ("ROW_ID" NUMBER NOT NULL ACTIVATE, VARCHAR2 (4000) 'TEXT')

    Table created.

    insert into liturgy_reading_copy

    Select 1, ' a reading from the letter of Saint PAUL to the Romans: BROTHERS and SŒURS: everything that has been written above... ". »

    of all the double union

    Select 2, "another text, less HOLY inspiration, containing all the WORDS in capital LETTERS

    of the double

    2 inserted rows.

    ROW_ID TEXT
    1 A reading from the letter of Saint PAUL to the Romans: BROTHERS and SŒURS: everything that has been written above...
    2 Another text, at least the HOLY inspiration, containing all the WORDS in capital LETTERS

    merge into liturgy_reading_copy lrc

    using (with

    init_capitalizer (RID, CBC, res) as

    (select row_id,

    substr (text, instr (text,' ') + 1) | '  ',

    -case when substr (text, 1, instr (text,' ')) = upper (substr (text, 1, instr (text,' ')))

    then initcap (substr (text, 1, instr (text,' ')))

    of another substr (text, 1, instr (text,' '))

    end

    of liturgy_reading_copy

    Union of all the

    Select RID.

    substr (src, instr (CBC,' ') + 1) | ' ',

    RES | -case when substr (src, 1, instr (CBC,' ')) = upper (substr (src, 1, instr (CBC,' ')))

    then initcap (substr (src, 1, instr (CBC,' ')))

    of another substr (src, 1, instr (CBC,' '))

    end

    of init_capitalizer

    where rtrim (src) is not null

    )

    Select RID, res

    of init_capitalizer

    where rtrim (src) is null

    ) ic

    on (lrc.row_id = ic.rid)

    when matched

    then update

    text = ic.res

    Statement processed.

    ROW_ID TEXT
    1 A reading from the letter of Saint Paul to the Romans: siblings: everything that has been written above...
    2 Another text, less Holy inspiration containing all the words in capital letters

    Concerning

    Etbin

  • Find the name and the table constraint type based on the name of the field

    I have a field name or a column with me... I want to find the name of the table is a primary key... Any request to make this work so that the running costs are low...

    Currently, I mix dba_constraints and ALL_TAB_COLUMNS to get this... is possible to extract the data of a process cost effective single table/any other is appreciated

    You must include the USER/ALL_CONSTRAINTS with USER/ALL_CONS_COLUMNS to achieve your desired results. For your specific condition, you can try this query.

    Select constraint_name

    column_name

    de)

    Select c.constraint_name

    cc.column_name

    count on column_count (c.constraint_name score) (cc.column_name)

    from user_constraints c

    Join user_cons_columns cc

    on c.constraint_name = cc.constraint_name

    where constraint_type = 'P '.

    )

    where column_name = 'EMPNO '.

    and column_count = 1;

    I used USER_CONSTRAINTS and USER_CONS_COLUMNS. If you use ALL or DBA dictionary table add join OWNER condition as well.

  • Impossible to change the name of the Table in figures

    I'm unable to change the title of a table, when I change the title name and press on enter it reverts to the original title. I tried to click away and save the document, but both go back to the original title. The only way to work is, it seems if the option a table a few times then start trying a new title.

    This can happen when you have a table with the same name on the same sheet.  Numbers of refuses to accept the name "double".  Check the names of the tables on the al sheet again.  One way to do that is to click the right part of the tab "" at the top with the sheet and inspect the table names in the drop-down menu that appears.

    SG

  • What is the name of the table that has the name of the custom in the Oracle database Section?

    What is the name of the table that has the name of the custom in the Oracle database Section?

    Thank you

    Nefertari

    The names of the custom Sections are stored in commonExtendedAttributeML, the extended attribute table.

  • Using the name of the table to Insert variable

    Hello

    I'm trying to use a variable as the name of table to do an insert.

    The name of the table where my datas have to be inserted is EVV_ + the Ref_var of data.

    My code will be more explicit:

    SELECT 'EVV_ ' | Ref_Equip

    IN v_Ref_Equip

    OF user.c_equip

    WHERE clef_equip = v_clef_equip;

    INSERT INTO 'user '. || v_Ref_Equip (Clef_var, Date1, value)

    VALUES (v_clef_var, 18 May 01 ', 49, 156');

    I can't find the proper syntax for inclusion in. I tried a lot of syntax, but not good.

    So, how can I concatenate 'user.' + my v_Ref_Equip variable?

    Thanks for the help

    Have a look at this immediate execution method

    SQL> set serveroutput on;
    SQL> declare
      2  v_tab_name varchar2(20) := 'temp';
      3  begin
      4      execute immediate 'create table temp(id number)';
      5      execute immediate 'insert into '||v_tab_name||' values (1)';
      6      commit;
      7  end;
      8  /
    
    PL/SQL procedure successfully completed.
    
    SQL> select * from temp;
    
            ID
    ----------
             1
    
    SQL>
    
  • name of the table in the EM repository to return the State of the database

    Hi, I would like to know the name of the table in MS repository on which I can query for the status of the database. I've tired to search in the target of $ mgmt and did not find the status of the db

    Please take a look at the AVAILABILITY_CURRENT view of $ MGMT.

    http://docs.Oracle.com/CD/E24628_01/doc.121/e57277/ch19_monview.htm#EMVWS12346

    Kind regards

    -Loc

  • SQL how to use a variable and use the result as a reference for the name of the table

    Hi all

    I have new in the declaration of Oracle, sorry in advance if something is easy for you all. BTW, I have this scenario:

    I have a table OL structured in this way:

    Date - it contains dates, for example 11/01/2015

    TableName - it contains strings, for example, OL1, OL2, OL3 and so on...

    Then I have a different table, the name of these tables are of the same name in the table of the OL, so I have table table, OL1, OL2, OL3 table and so on. The structure of these tables is the same. And Yes.

    table OL1

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

    ID LAST NAME FIRST NAME PHONE

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

    1 JOHN DOE 12345679

    2 PAUL 111111122 TIBBS

    table OL2

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

    ID LAST NAME FIRST NAME PHONE

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

    1 ANNA KRAIG (NULL)

    NATHAN FRESHMANN 111111133 2

    If the scenario is clear, I would like to retrieve the value (null), research in all the OL * tables by using the value of the OL table (tablename) max.

    If I'm going to do these simple steps, I got the result:

    Select max (TableName) OL

    the result will be OL2

    # I know not how to use the option set to avoid changing the table name in the sql statement all the time.

    set mytable = 'OL2.

    Select Name, family name

    of & mytable

    When the phone is null

    Any idea?

    Thank you very much in advance.

    Hello

    run immediately "select dt.log_id, obj.presentation_name, dl.begin_time

    bulk collect into v_result_set

    of ' | v_ol |' dt join internal ol_object obj on

    DT.object_type_id = obj.object_type_id

    inner join ol_chunk_log dl on

    DT.log_id = DL.log_id

    where dt.data_value is null';

    dbms_output.put_line (v_ol);

    end;

    Correct the code such as:

    run immediately "select dt.log_id, obj.presentation_name, dl.begin_time

    of ' | v_ol |' dt join internal ol_object obj on

    DT.object_type_id = obj.object_type_id

    inner join ol_chunk_log dl on

    DT.log_id = DL.log_id

    where dt.data_value is null' bulk collect into v_result_set;


    for i in v_result_set.first ... v_result_set. Last

    loop

    dbms_output.put_line ('LOG ID: ' | ) ( v_result_set.log_id (i)) ;

    dbms_output.put_line (' NAME CLOSELY: ' |) v_result_set.presentation_name (i));

    dbms_output.put_line (' START TIME: ' |) ( v_result_set.begin_time (i)) ;

    end loop;

    end;

    Kind regards.

  • Look for the name of the table of choice in stock or manufacturing


    What is the name of the table in the inventory which is used to store information in list of choice?

    To make my question clear, here are the steps:

    (1) connect to Oracle EBS (R12) with responsibility for the inventory.

    2) go to settings

    (3) go in the research - you see the screen named "manufacturing research."

    4) click on your flashlight to select the value for the Type.

    (5) for example, select MTL_CONVERSION_TYPE - you'll see the Code values and columns meaning listed below:

    Meaning of the code

    1 specific item

    2 standard

    3 standard and specific item

    Question:

    What is the name of the table that contains the values above?

    Hello

    I finally found the name of the table. The name is "FND_LOOKUP_VALUES".

    Thank you

  • Concatenation of the name of the table in the Insert query

    Greetings,

    Oracle Version - Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64 bit Production


    I want to write a procedure in which we give the name of the table in the Insert at runtime through cursor


    But the problem is

    insert into tra_temp

    Select * tra_smi23 of

    in statement above 23 must be dynamic like tra_smi | 23


    Here is my code, but something is not

    Kindly help


    create or replace procedure as

    cursor c1 is

    Select op_ID, operators OP_NAME where OP_NAME like '% TRA '.

    and OP_ID <>9;

    Start

    run immediately 'truncate table tra_temp;

    for rec in c1

    loop

    insert into tra_temp

    Select * from tra_SMI | ' recomm. OP_ID';

    commit;

    When exit c1% notfound;

    end;

    Hello

    Then you must change the insert statement for: run immediately ' insert into tra_temp select * from tra_SMI'| recomm. OP_ID;

    Concerning

    Mr. Mahir Quluzade

  • by selecting the name of the table as a variable

    Please correct it.

    declare
    v_ename varchar2 (10): = 'emp ';

    Start
    for j in (select ename from v_ename)
    loop
    dbms_output.put_line (j.ename);
    end loop;
    end;

    get error table v_ename does not exist.
    I have to use v_ename, as I don't know the name of the table.

    You need to use dynamic SQL statements if it is really an obligation. In the majority of cases, when people think that they need to code SQL dynamic, however, they attempt to conceal a more fundamental problem of design (often a data model that needs to be fixed). Since you haven't explained why you think you have need to use dynamic SQL statements, it is difficult to know if it's just adding more complexity to your environment.

    If you know that there is always an ENAME column in which table is passed, you know that the ENAME column is always a VARCHAR2 (10), and the number of rows in the table is reasonably small

    SQL> ed
    Wrote file afiedt.buf
    
      1  declare
      2    type ename_tbl is table of varchar2(10);
      3    l_enames ename_tbl;
      4    l_table_name varchar2(30) := 'EMP';
      5  begin
      6    execute immediate 'select ename from ' || l_table_name
      7       bulk collect into l_enames;
      8    for i in 1..l_enames.count
      9    loop
     10      dbms_output.put_line( l_enames(i) );
     11    end loop;
     12* end;
     13  /
    SMITH
    ALLEN
    WARD
    JONES
    MARTIN
    BLAKE
    CLARK
    SCOTT
    KING
    TURNER
    ADAMS
    JAMES
    FORD
    MILLER
    
    PL/SQL procedure successfully completed.
    

    Justin

  • maximum length of the name of the table.

    Hi all

    I think that the maximum length of the array and the name of column in oracle 11g is 30 characters.
    I want to increase the limit I want to import a mysql database that is to have more big names in the table.
    I can set the length of the name and the table column name?

    Thanx.

    Before the migration, you can rename your tablename in MYSQL
    http://docs.Oracle.com/CD/E12151_01/doc.150/e12155/oracle_mysql_compared.htm

    You can't increase and change the length of the table

  • Name of the table to see the forecast in the backend SQL query

    Hello


    Forecast is released on ASIC of Dematra,

    I have the name of the table to see the forecast published in Demantra

    How to confirm that the same forecasts are published in CPSA also

    What is the name of Table to see forecasts, forecasts

    Data published in the CAWC Demantra forecasts will be stored in the following MSD_DP_SCN_ENTRIES_DENORM table

    first get the scenario_id of the msd_dp_ascp_scenarios_v of table using scenario_id check if the forecast is filled in msd_dp_scn_entries_denorm

    Published by: user11986840 on August 13, 2012 03:15

  • Name of the table to find the workbook columns

    Hello

    I'm working on an implementation project legacy 11.5.10 and discoverer 4 version R12 system. I'm looking in the discoverer workbooks and I need the name of the table to determine the COLUMNS in a workbook.
    Any help is appreciated.

    Billa

    Hello

    Unfortunately, this information is not available in the EUL. The workbooks are stored in the EUL4_DOCUMENTS table in a column of type LONG. It uses a binary format and means that you can not query the structure of the workbook.

    Rod West

Maybe you are looking for