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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Length of LONG datatype

Re: Length of LONG datatype

From: Paul Baumgartel <treegarden_at_yahoo.com>
Date: Tue, 19 Mar 2002 14:42:48 -0800
Message-ID: <F001.0042DF1C.20020319144248@fatcity.com>


I'll address your second question, because I don't know, offhand, the answer to the first!

IMO, there's almost no advantage to using LONG. There are many restrictions on its use (e.g., only one LONG in a table), you can't apply a function to a LONG column, you can't use it in a set operation, etc. In addition, Oracle says that the LONG datatype will soon be phased out.

If you can fit your data into 4000 or fewer characters, use VARCHAR2. If not, go for CLOB/BLOB, which require a little more overhead, but are much more useable than LONG.

Paul Baumgartel
Adept Computer Associates, Inc.
treegarden_at_yahoo.com


Do You Yahoo!?
Yahoo! Sports - live college hoops coverage http://sports.yahoo.com/
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Paul Baumgartel
  INET: treegarden_at_yahoo.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 Mar 19 2002 - 16:42:48 CST

Original text of this message

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