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: LONG or VARCHAR2(2000)

RE: LONG or VARCHAR2(2000)

From: Thomas L. Harleman <tharleman_at_iquest.net>
Date: Wed, 10 May 2000 01:42:38 -0500
Message-Id: <10493.105312@fatcity.com>


Look in your Oracle SQL documentation on the restrictions in using LONG. You can not search the values stored in LONG using SUBSTR. In the past when I needed to use LONG, I stored it in a separate table with a 1:1 FK to its parent table because of it's effect on the table that contains the LONG column.

-----Original Message-----
From: root_at_fatcity.com [mailto:root_at_fatcity.com]On Behalf Of Eric Fang Sent: Tuesday, May 09, 2000 10:54 PM
To: Multiple recipients of list ORACLE-L Subject: LONG or VARCHAR2(2000)

we decide to use a field to store the URL in the database, it could be very long but most of them less that 2k characters. But some developers prefer to use VARCHAR2(2000). What's the advantage of using LONG v.s VARCHAR2(2000) or VARCHAR@(2000) v.s LONG?

Any opinion?
Thanks.

Eric Fang



Do You Yahoo!?
Send instant messages & get email alerts with Yahoo! Messenger. http://im.yahoo.com/
--
Author: Eric Fang
  INET: eric_fang_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 Wed May 10 2000 - 01:42:38 CDT

Original text of this message

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