Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Round or Trunc numbers
Here's a kludge:
Convert the number to CHAR and then convert the right most portion back to a
number.
This could be done in a pre-insert trigger, couldn't it?
Tom Harleman
11080 Willowmere Dr.
Indianapolis, IN 46280
317-844-2884 Home
317-843-9122 Home Office
-----Original Message-----
From: root_at_fatcity.com [mailto:root_at_fatcity.com]On Behalf Of Christine
Turner
Sent: Friday, July 07, 2000 2:28 PM
To: Multiple recipients of list ORACLE-L
Subject: Round or Trunc numbers
Hello All,
Got a question regarding inserting numbers. Have a table where the number column is defined as 18,6. I'm getting the infomous ORA-01438: value larger than specified precision allows for this column error. OUCH! Anyway...I know there is a way to truncate the number to the right of the decimal, but is there a way to truncate from the left???? Anyway to make the number that is being inserted "fit" into the column regardless of the format that column has????
Thanks in Advance.
Christine Turner
Database Administrator
IPS-Sendero
Scottsdale, Arizona
Phone: (800) 321-6899 ext. 3286
Fax: (480) 946-8224
E-mail: christine.turner_at_ips-sendero.com
-- Author: Christine Turner INET: Christine.Turner_at_IPS-Sendero.com Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051 San Diego, California -- Public Internet access / Mailing Lists -------------------------------------------------------------------- To REMOVE yourself from this mailing list, send an E-Mail message to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in the message BODY, include a line containing: UNSUB ORACLE-L (or the name of mailing list you want to be removed from). You may also send the HELP command for other information (like subscribing).Received on Tue Jul 11 2000 - 12:17:17 CDT
![]() |
![]() |