Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> TRUNCATE on INSERT (ORACLE)

TRUNCATE on INSERT (ORACLE)

From: uncle.scrooge <uncle.scrooge_at_worldnet.att.net>
Date: 2000/08/12
Message-ID: <3995E077.A992F412@worldnet.att.net>#1/1

I think I know the answer, but I'll take a shot in the dark anyway...

There's no jdbc (or database) option for statement/connection/database/resultset whereas one can tell the database "if this string doesn't fit, truncate it", is there???

ie in ORACLE, how can I get this to work without altering the table or making the string shorter?

CREATE TABLE YYY ( FOO VARCHAR2(10)); INSERT INTO YYY VALUES('abcdefghijlkmnopqrstuvwxyz');

any help appreciated...

thx Received on Sat Aug 12 2000 - 00:00:00 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US