Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Storing decimal number with ending zeros

Robert_D.May 17 2019 — edited May 20 2019

Hello,

in my table I want to store strings converted to numbers, e.g. 1, 1.0, 1.1.

  CREATE TABLE ."MY_TABLE"

   ( "COL1" NUMBER

   ) ;

insent into my_table (col1) values to_number('1');

insent into my_table (col1) values to_number('1.0');

insent into my_table (col1) values to_number('1.1');

After this in SQL Developer I see values

1,

1,

1.1

How to store in column numbers with ending zeros like 1.0?

Comments
Post Details
Added on May 17 2019
16 comments
3,856 views