data type number indicating the exponential value...

Hello

I HAV a column phone_no (data type of number) in a database. Why show the phone not in this format

PHONE_NO
---------
9.873E + 09

Please give me the solution.

Hello

It seems that the default width for the number of columns on your system is 9.

You use SQL * more?
If so, you can change the default to 10 (or more) for your session:

SET  NUMWIDTH 10

or you can format specifically this column:

COLUMN  phone_no  9999999999

Tags: Database

Similar Questions

  • Incompatible data type problem in the ADF

    Hello

    I'm new to ADF. I'm writing a logic in the implementation of the entity class.
    The logic contains below two lines.

    Integer itemQty = row.getQuantity ();
    Number Qty = (Number) (itemQty);

    However when compiling, error comes which says 'incompatible data types' that is the integer and the number are not compatible.
    Please let me how can know I convert an integer in Number type.

    Thank you
    Anuj
    Integer  itemQty = row.getQuantity();
    oracle.jbo.domain.Number n= null;
        try
        {
          n = new oracle.jbo.domain.Number(itemQty);
        }
        catch (SQLException e)
        {
          //handle the exception here.
        }  
    

    But why do you need to cast to oracle.jbo.domain.Number?

  • How to interpret the data cache setting and the current value of data cache?

    How to interpret the data cache setting and the current value of data cache? We found that even, we configure a larger data cache in Essbase 2 GB for example, the current value of the data cache is always much lower. Does that indicate an activities of data at very low recovery or something else?

    Thanks in advance!

    Hello

    When a block is requested, Essbase searches the data for the block cache. If Essbase is the block in the cache, it is immediately accessible. If the block is not found in the cache, Essbase in the index for the appropriate block number and then uses the index of the block entry to retrieve from the data on the disk file. Retrieve a block requested in the data cache is faster and therefore improves performance.

    So as you say that its current value is much lower then % is very low, that a requested block is in the cache of Essbase data.

    Hope that respond you to the.

    Atul K

  • Causing problems of custom data type to deploy the shared target RT variable

    I seem to have some difficulty in using a shared variable published network created from a customized data type when it is deployed as an executable on a target of cRIO RT.  I'll start by describing why I think that this is the rub.  I created my RT VI in the LabVIEW (LV 2012) development environment and everything works fine.  This VI is quite simple, because these were quickly devolved into an exercise in debugging.  The RT VI begins by simply flashing the LED to a couple of times and then starts a loop simple acquisition to read some values out of the material using the analytical engine (while still flashing the LED of the user).  After reading the material, the values are grouped in a cluster and written in a shared variable published to the network defined by a custom control type def.  The custom control contains five floats double precision.  If it's important, the RT cRIO system hosts the shared variable in this case.

    So I have that deploy in the development environment, and everything works fine.  The LED flashes merrily along, telling me that the program runs correctly.  Running a VI host who reads the shared network has published variable gives the desired result.  Everything is good.

    Now, I want the cRIO system to run this simple program by itself at startup.  I build, set it as start VI, deploy it, and then restart the cRIO target.  The LED never flashing... the VI doesn't seem to work.  I'll spare you the major part of the work of debugging and access to the end.  I basically "diagram Disabled" various sections of the code up to the VI began to run correctly in an executable file.  I kept reducing the size of the disabled code until something has been disabled: the writing in the shared variable for the custom data type.

    So, I guess my question is this: are custom data types defined by type def would be personalized orders authorized executables to RT?  I read through the cRIO Developers Guide, my book of development in real time course of NOR and the white paper using shared Variables and I see nothing that forbids it.  I know that there are things not allowed in the executable files that are allowed in the development environment (property nodes façade, dialogue live, operating system specific calls, etc.), but no mention of the shared variable type custom data.  Any ideas as to why my VI is running in the development environment, but does not update unless I have delete the entry on the published network variable shared?

    Thank you in advance for your help!

    You must disconnect the data types of variables and then recompile. You can find it useful to keep on disk, a copy of the original lvlib.

    Don't know if this is a bug or not. It was suggested by someone in the forum that putting the ctl files in the right position (the disk? in the draft?) would allow the rtexe start; I did a quick check and it didn't work then I dropped the tests more far.

  • Gets the data type variant for the selection of cases

    I don't ' know much about alternative, so I'll ask as many questions as possible on this subject.  If I have a table of varying, and each of these variations has been converted to a different data type.  This table will be the clue to a for loop and each item will be handled in a case inside the loop structure for.

    The issue is that I would like to take the variant data type, convert enum and use it to select the box on the structure of the case.  How do I do that?  Or what is the best way to do it?

    Yik

    www.Openg.org

    VI 'Get TDEnum of data' of the data tools package.

    There is also the "GetTypeInfo" VI which is located in the \vi.lib\Utility\VariantDataType folder.

  • How to display the data type long using the select statement

    Hai All

    I have to select the text of a view. But the text is declared as long and I need to see full view

    When I use this

    Select the text in all_views where view_name = "DAILY_ATTEND_VIEW";

    I have got only half of a select statement

    Concerning

    Srikkanth.M

    Hello

    SQL> SET LONG 100000
    SQL> select text from user_views
      2   where view_name='MVIEW';
    
    TEXT
    ------------------------------------------
    select e.empno,e.deptno,d.dname
    from emp@sdblink e,dept@sdblink d
    where e.deptno=d.deptno
    

    But it is limited to sql alone. If you use the double click TOAD on the text column in the grid will show you the entire SQL views.
    Unfortunately, there is limitation to consider,
    The largest value that you return from the function would be 32 k (RETURN VARCHAR2), both.

    Twinkle

  • Generation of an element of an Instance of data type defined by the user

    Hi all

    I am trying to generate an element with several attributes xml, (I don't want to use builtin xmlattributes )

    Script common and produces xml is,

    -lower table departments

    create table services (department_id number (2))

    , department_name varchar2 (14)

    ) ;

    insert into departments values (10, 'Blue');

    insert into a values (20, 'Red') departments;

    -drop table employees

    create the table employees (employee_id number 4

    , last_name varchar2 (10)

    (, number (2)) department_id;

    insert into employees values ("1,'Ram gupta", 10);

    insert into employees values (2, 'Pan Yadav', 10);

    insert into employees values ("3, ' Asu Jena", 20);

    insert into values employed (4 'Viv Pandey', 20);

    CREATE or REPLACE TYPE emp_t AS OBJECT ("@EMPNO" number 4,

    ENAME VARCHAR2 (10));

    /

    CREATE or REPLACE TYPE emplist_t AS TABLE OF THE emp_t;

    /

    CREATE or REPLACE TYPE AS OBJECT dept_t ("@DEPTNO" NUMBER (2),)

    DNAME VARCHAR2 (14).

    EMP_LIST emplist_t

    );

    /

    CREATE or REPLACE TYPE deptxml AS TABLE OF THE dept_t;

    -The query for XMl,.

    SELECT

    dept_t (department_id,

    department_name, CAST ((SELECT employe_id, last_name MULTISET

    E EMPLOYEES

    WHERE e.department_id = d.department_id)

    AS emplist_t)

    )

    AS deptxml

    DEPARTMENTS d

    WHERE d.department_id = 10;

    XML product

    <? XML version = "1.0"? >

    -Department < and >

    -< DEPT_T DEPTNO = "10" >

    Blue < DNAME > < / DNAME >

    -< EMP_LIST >

    -< EMP_T EMPNO = "1" >

    < ENAME > Ram gupta < / ENAME >

    < / EMP_T >

    -< EMP_T EMPNO = "2" >

    Yannick Pan < ENAME > < / ENAME >

    < / EMP_T >

    < / EMP_LIST >

    < / DEPT_T >

    < / Department >

    Required XML code is...

    <? XML version = "1.0"? >

    -Department < and >

    -< DEPT_T DEPTNO = "10" >

    Blue < DNAME > < / DNAME >

    -< EMP_LIST >

    -< EMP_T EMPNO, ENAME = '1' = 'Ram gupta' > < / EMP_T >

    -< EMP_T EMPNO = '2' = ENAME "Pan yannick ' > < / EMP_T >

    < / EMP_LIST >

    < / DEPT_T >

    < / Department >

    Please kindly suggest me the script for this XML.

    SQL> CREATE OR REPLACE TYPE emp_t AS OBJECT ("@EMPNO" NUMBER(4),  2                                          "@ENAME" VARCHAR2(10))  3  /
    Type created.
    SQL> CREATE OR REPLACE TYPE emplist_t AS TABLE OF emp_t  2  /
    Type created.
    SQL> CREATE OR REPLACE TYPE dept_t AS OBJECT ("@DEPTNO" NUMBER(2),  2                                          DNAME VARCHAR2(14),  3                                          EMP_LIST emplist_t  4                                          )  5  /
    Type created.
    SQL> CREATE OR REPLACE TYPE deptxml AS TABLE OF dept_t  2  /
    Type created.
    SQL> select sys_xmlgen  2        (  3          deptxml  4          (  5            dept_t  6            (  7                department_id  8              , department_name  9              , cast 10                ( 11                    multiset 12                    ( 13                      select employee_id 14                            , last_name 15                        from employees e 16                        where e.department_id = d.department_id 17                    ) as emplist_t 18                ) 19            ) 20          ) 21        , sys.xmlgenformattype.createformat('Department') 22        ) as deptxml 23    from departments d 24  where d.department_id = 10;
    DEPTXML--------------------------------------------------------------------------   Blue         
    
    SQL>
    
  • Invalid number for the target value

    Hello

    I am trying to create a dynamic action for which, under the SQL, I used the following code

    Select to_char(:P3_COMPLEX_INV_DATE,'MON') where DOUBLE: P3_COMPLEX_INV_DATE is a date in the format DD-MM-AA picker.

    My requirement is to extract the part the user date month has chosen.

    I get the following error

    Ajax call back Server error ORA-01722: invalid number to set the value.

    Can someone help me solve the problem?

    then use the following syntax

    Select to_char (to_date(:P3_COMPLEX_INV_DATE,'DD-MON-YY'), 'MY') FROM DUAL

    Also check if the DA is running

    Let me know if that answers your query in the active thread

  • Reg: Data Type NUMBER

    Hello

    I accidentally created table with column NUMBER (2.5) (in fact, it should be NUMBER (5.2)).

    So I thought to scale must be less than the value of precision . Therefore, Oracle must raise an error in this case, but it didn't.

    When I tested with certain values, I found that the "0.001" value is not inserted but "0.0001" is the insertion.

    SQL> drop table tnum;
    
    Table dropped.
    
    SQL> create table tnum (num number(2,5));
    
    Table created.
    
    SQL> insert into tnum values(0.01);
    insert into tnum values(0.01)
                            *
    ERROR at line 1:
    ORA-01438: value larger than specified precision allowed for this column
    
    
    SQL> insert into tnum values(0.001);
    insert into tnum values(0.001)
                            *
    ERROR at line 1:
    ORA-01438: value larger than specified precision allowed for this column
    
    
    SQL> insert into tnum values(0.0001);
    
    1 row created.
    
    SQL>
    

    Can someone please clarify this?

    It is documented:

    http://docs.Oracle.com/CD/B28359_01/server.111/b28286/sql_elements001.htm#SQLRF00222

    Scale can be longer than precision, most commonly when e notation is used. When the scale is greater than the precision, the precision specifies the maximum number of significant digits to the right of the decimal point. For example, a column defined as NUMBER(4,5) requires a zero for the first digit after the decimal point and rounds all values after the fifth digit after the decimal point.

    Try to insert 0.01 fails because he has more than two significant digits: 0.01000 (four digits) and similarly for 0.00100

    0.0001 is OK because it has two significant figures (0.00010).

  • What are the best practices for creating only time data types, and not the Date

    Hi gurus,

    We use 12 c DB and we have a requirement to create the column with datatype of time only, if someone please describe what are the best practices for the creation of this.

    I would strongly appreciate ideas and suggestions.

    Kind regards
    Ranjan

    Hello

    How do you intend to use the time?

    If you are going to combine with DATEs or timestamps from a other source, then an INTERVAL DAY TO SECOND or NUMBER may be better.

    Will you need to perform arithmetic operations on time, for example, increase the time to 20%, or take an average?   If so, the NUMBER would be preferable.

    You are just going to display it?  In this case, DAY INTERVAL in SECONDS, DATE or VARCHAR2 would work.

    As Blushadow said, it depends.

  • How to insert the date with timestamp in the table values

    Jin
    I have a table

    create the table abc1 (dob date);

    insert into abc1 values (to_date (sysdate, "HH24:MI:SS RRRR/MM/DD))

    but when I see in the database, it shows that the normal date without time stamp.

    Is it possible to insert in the back-end with time stamp.

    Thank you...

    Firstly, SYSDATE is a DATE already, no need to convert a DATE using the TO_DATE() function.

    The date ALWAYS was a component "hour", if it is displayed until your NLS settings. for example:

    SQL> CREATE TABLE ABC1(DOB DATE);
    
    Table created.
    
    SQL> ALTER SESSION SET NLS_DATE_FORMAT='MM/DD/YYYY';
    
    Session altered.
    
    SQL> INSERT INTO ABC1 VALUES(SYSDATE);
    
    1 row created.
    
    SQL> SELECT * FROM ABC1;
    
    DOB
    ----------
    02/04/2010
    
    SQL> ALTER SESSION SET NLS_DATE_FORMAT='MM/DD/YYYY HH24:MI:SS';
    
    Session altered.
    
    SQL> SELECT * FROM ABC1;
    
    DOB
    -------------------
    02/04/2010 12:54:57
    
    SQL> DROP TABLE ABC1;
    
    Table dropped.
    
  • using dbms_metadata for retrieve data type name and the parameter of a procedure

    Hi guru,.

    is there a subprogramme in dbms_metadata which will extract that ideally the specifications of a procedure/function call

    If the my program spec is proc1 (id1 number, CRC in varchar2, id2 number)

    If I call something like

    Select * from table (dbms_metadata. < subprogramme > ("proc2"));

    It gives me

    Id1 number

    CRC in varchar2

    Id2 number

    ideas/pointers?

    Why do you need to do this?

    See S/n/ALL/$user_arguments.

  • Point size of a paragraph indicating the different value in the definition

    Hello!

    I have two paragraphs on a page of my InDesign document. The size of the text of the two of them is 18pts. On the via the script, when I access the pointSize field in the two paragraphs (paragraph points pointSize object), it now returns 18.

    But if I check in via para.appliedParagraphStyle.pointSize, he returned to 38.

    Anyone could explain this behavior, or what fundamental error that I do?

    See fly the answer of the day here-

    Place multiple images in a container (rectangle, oval, polygon)

  • convert the varchar2 data type to the data number type

    How to convert the varchar2 data type to the data type number.


    It looks like my data

    create table one)
    col1 varchar2 (50)
    col2 varchar2 (500);

    Insert in a (col1, col2) values ('1234 ', ' 2345');

    Select Column1 of number (19)) cast (to_number (col1);

    IAM getting error invalid number


    I need to create a table with the same columns with data like number types (19)

    can someone help me

    Thank you

    You have changed your original post, so now I see that you get the invalid number.

    This is why you should always avoid the varchar columns to store numbers or dates...

    Since your table source contains a nonnumeric value, you can write a pl/sql to convert data and see what records are false:

    SQL> insert into a (col1,col2) values ('xxxx','2345');
    
    1 row created.
    
    SQL> select * from a;
    
    COL1     COL2
    -------- --------
    1234     2345
    xxxx     2345
    
    2 rows selected.
    
    SQL> create table b (col1 number(19), col2 number(19));
    
    Table created.
    
    SQL> set serverout on
    
    SQL> declare
      2  cursor c is
      3  select * from a;
      4  begin
      5    for r in c loop
      6     begin
      7       insert into b values (to_number(r.col1), to_number(r.col2));
      8     exception
      9       when invalid_number then
     10        dbms_output.put_line('Row rejected: col1='||r.col1||' col2='||r.col2);
     11     end;
     12    end loop;
     13  end;
     14  /
    Row rejected: col1=xxxx col2=2345
    
    PL/SQL procedure successfully completed.
    
    SQL> select * from b;
    
          COL1       COL2
    ---------- ----------
          1234       2345
    
    1 row selected.
    

    Max

    Published by: Massimo Ruocchio, June 14, 2011 20:00
    Added the first query in the example

  • ADF BC - difference between the number and the Types of attributes DBSequence

    Hi all

    The ADF tutorials and examples, when you define an entity object, I understand that we could make use of the type of the DBSequence attribute and a trigger of DB to set a unique ID column on a table in the INSERT.
    For the same primary key attribute, I tried to use the Number data type. Now, with the DB of active trigger, I was able to achieve the same result as before. Additional configurations, I had to make sure that when using the data type numbers will allow "Refresh after insert", define Updatable when new and define a default value (I put this as - 1).

    My question is what is the difference between using a number and DBSequence of the types of data for a field? Is that just a data type DBSequence avoids the manual installation of the above properties?

    Thank you

    Hello

    With your approach, you tried to create several lines and then engaging them? Seems that your solution works for as long as there is only one line, you create both

    Frank

Maybe you are looking for

  • Can I re-group of images in a slideshow of pictures?

    Hello I created several slide shows on the same photos in 1.5 of Photos using the themes predefined (for example, Origami, Vintage Prints) on my MBpro. According to the given topic, the number of images shown in each slide varies from slide to slide.

  • Qosmio G30 - recovery disk to unzip files, but nothing happens

    I have a Qosmio G30 running Windows XP MCE. Windows has somehow was corrupt and laptop could only be started in safe mode. I backed up all my data but when I run the restore disc, it gets to 100%, but then nothing else happens. It says to eject the d

  • Satellite x 200-252 USB hub driver

    Hello.I removed the USB host controllers and hubs root USB in the list of devices in Device Manager. After rebooting the system, USB root hubs is not installed correctly, but as "unknown devices". It works, but vista trying to find correct driver, bu

  • Connect a second monitor to ATI Radeon HD 5570

    Hi, I just got my HP Pavillion Elite PHE-360z and it works great so far.  My question is that I have two monitors that I would use with the card.  The first monitor is hooked up okay using the DVI connection.  However, the card has also 2 other slots

  • 3510 printer: direct internet windows wireless printer

    just to check: on my WIN 7 PC, I cannot not BOTH Print via direct wireless (WD) on my 3510 AND internet access on my network (WHN) wireless home i unless: (using WIN 7) switch between the WD network and the network WHN or manually disable WD on the 3