- 论坛徽章:
- 0
|
- SQL> create table test(cola number(30,0));
- Table created.
- SQL> insert into test values (12345678901234567890123456789);
- 1 row created.
- SQL> select * from number
- 2
- SQL> select * from test;
- COLA
- ----------
- 1.2346E+28
- SQL> select to_char(cola,'999999999999999999999999999999') from test;
- TO_CHAR(COLA,'99999999999999999
- -------------------------------
- 12345678901234567890123456789
- SQL> /
- TO_CHAR(COLA,'99999999999999999
- -------------------------------
- 12345678901234567890123456789
- SQL> l
- 1* select to_char(cola,'999999999999999999999999999999') from test
- SQL> select * from test;
- COLA
- ----------
- ##########
- SQL> col cola for 99999999999999999999999999999999
- SQL> /
- COLA
- ---------------------------------
- 12345678901234567890123456789
- SQL>
复制代码
sql reference 中有data type的描述 |
|