From oracle-l-bounce@freelists.org Thu Jun 24 12:16:37 2004 Return-Path: Received: from air189.startdedicated.com (root@localhost) by orafaq.com (8.11.6/8.11.6) with ESMTP id i5OHGBi11757 for ; Thu, 24 Jun 2004 12:16:21 -0500 X-ClientAddr: 206.53.239.180 Received: from turing.freelists.org (freelists-180.iquest.net [206.53.239.180]) by air189.startdedicated.com (8.11.6/8.11.6) with ESMTP id i5OHFx611715 for ; Thu, 24 Jun 2004 12:16:09 -0500 Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 3AA9D72D070; Thu, 24 Jun 2004 11:59:14 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13755-84; Thu, 24 Jun 2004 11:59:14 -0500 (EST) Received: from turing (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id E471E72D419; Thu, 24 Jun 2004 11:57:08 -0500 (EST) Received: with ECARTIS (v1.0.0; list oracle-l); Thu, 24 Jun 2004 11:55:31 -0500 (EST) X-Original-To: oracle-l@freelists.org Delivered-To: oracle-l@freelists.org Received: from localhost (localhost [127.0.0.1]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id 6D72672CD87 for ; Thu, 24 Jun 2004 11:55:29 -0500 (EST) Received: from turing.freelists.org ([127.0.0.1]) by localhost (turing [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13187-45 for ; Thu, 24 Jun 2004 11:55:29 -0500 (EST) Received: from troll.tpk.net (mail.tpk.net [216.107.198.11]) by turing.freelists.org (Avenir Technologies Mail Multiplex) with ESMTP id C60A172C81D for ; Thu, 24 Jun 2004 11:54:23 -0500 (EST) Received: from MWF600XL (host216-107-212-43.tpk.net [216.107.212.43]) by troll.tpk.net (Postfix) with SMTP id 3358910220D for ; Thu, 24 Jun 2004 13:15:09 -0400 (EDT) From: "Mark W. Farnham" To: Subject: RE: Dratted LONG column Date: Thu, 24 Jun 2004 13:08:59 -0400 Message-ID: MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 In-Reply-To: Importance: Normal X-Virus-Scanned: by amavisd-new at freelists.org X-archive-position: 3577 X-ecartis-version: Ecartis v1.0.0 Sender: oracle-l-bounce@freelists.org Errors-To: oracle-l-bounce@freelists.org X-original-sender: mwf@rsiz.com Precedence: normal Reply-To: oracle-l@freelists.org X-list: oracle-l X-Virus-Scanned: by amavisd-new at freelists.org if you USE of the data is also segmented by the id_type, it might be convenient to partition. (this could also be WAY off target.) if you're up to a version of Oracle that allows the use of indexes for NOT NULL predicates, separation by single column indexes on each id_column will be nicely terse, including only values for the rows you need for each source type. You probably don't want these indexes to exist for very long in production, although from your description, only one would be troubled per insert and they would never get updated. Hmm. Maybe you can leave them around. mwf -----Original Message----- From: oracle-l-bounce@freelists.org [mailto:oracle-l-bounce@freelists.org]On Behalf Of Thomas Day Sent: Thursday, June 24, 2004 10:30 AM To: oracle-l@freelists.org Subject: Dratted LONG column I have to do a select using the long column in the where clause. Of course that won't work. 7 million rows. Some of the long data is over 15,000 characters (people like to write novels). I've tried to use the ANYDATA data type but I can't COPY into ANYDATA and I can't SELECT (for insert) from a LONG. Any ideas (or being pointed in the right direction) would be greatly appreciated. On a related note - if I'm going to build a new table (and I think that I am), the existing table has a poor design. There are 10 attributes that are IDs. One and only one of them must be non-null. I.e., one will have data and the other nine must be null. Rather than have 10 fields in my new table (with only one of them having data at any one time) I'd like to have an ID number and an ID_TYPE that records the column name in the original table where the value was non-null. Any nifty ideas on how to do this (other than using a series of selects from the original table that tests each field for non-nullity)? Thanks ---------------------------------------------------------------- Please see the official ORACLE-L FAQ: http://www.orafaq.com ---------------------------------------------------------------- To unsubscribe send email to: oracle-l-request@freelists.org put 'unsubscribe' in the subject line. -- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html ----------------------------------------------------------------- ---------------------------------------------------------------- Please see the official ORACLE-L FAQ: http://www.orafaq.com ---------------------------------------------------------------- To unsubscribe send email to: oracle-l-request@freelists.org put 'unsubscribe' in the subject line. -- Archives are at http://www.freelists.org/archives/oracle-l/ FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html -----------------------------------------------------------------