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!

Small Help Not Able to convert the TO_CHAR number while inserting

Sandy4312Mar 22 2018 — edited Mar 24 2018

/* Formatted on 3/22/2018 1:30:09 PM (QP5 v5.294) */

DROP TABLE TEMP;

/

CREATE TABLE TEMP

(

TEST_COLUMN NUMBER

)

/

INSERT INTO TEMP (TEST_COLUMN)

 VALUES (TO\_CHAR (0.63, '99990.999990'))

/

COMMIT;

SELECT*FROM TEMP

TEST_COLUMN

-----------

    .63

While Inserting I want to add 6 Decimals like this 0.630000, This is not working

But this is working when I do it from DUAL Any thoughts ? I'm doing insert from PL/SQL But same value shows good in DBMS_output.

pastedImage_0.png

This post has been answered by Frank Kulash on Mar 22 2018
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 21 2018
Added on Mar 22 2018
23 comments
940 views