Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: LONG or VARCHAR2(2000)
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
-- 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
![]() |
![]() |