Title: RE: RE: [PMX:#] update about 100K records

This kind of FBI is another way of selectively indexing or indexing a subset of rows by using FBI. Ahh ... the power of NULL value.

Raj
--------------------------------------------------------------------------------
Rajendra dot Jamadagni at nospamespn dot com
All Views expressed in this email are strictly personal.
QOTD: Any clod can have facts, having an opinion is an art !


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 09, 2003 10:05 AM
To: Multiple recipients of list ORACLE-L
Subject: Re: RE: [PMX:#] update about 100K records


that is a really good idea. discard my dopey pl/sql post. this one is alot better.

i must have been sniffing glue when i wrote it.
>
> From: "Jamadagni, Rajendra" <[EMAIL PROTECTED]>
> Date: 2003/07/09 Wed AM 09:39:24 EDT
> To: Multiple recipients of list ORACLE-L <[EMAIL PROTECTED]>
> Subject: RE: [PMX:#] update about 100K records
>
> How about creating a function based index on the column ...
>
> function my_func(table_column in number) return number
> is
> begin
>   if table_column = <your_current_value> then
>      return 1
>   else
>      return null;
>   end if;
> end my_func;
> /
>
> Then use this function to create a FBI on the table
> (pk_column, my_func(table_column)
> /
>
> This will give you only those 100000 rows. Then write an update statement
> that will use the FBI in the where clause and you are done.
> After words drop the fbi.
>
> Raj
> ----------------------------------------------------------------------------
> ----
> Rajendra dot Jamadagni at nospamespn dot com
> All Views expressed in this email are strictly personal.
> QOTD: Any clod can have facts, having an opinion is an art !
>

********************************************************************This e-mail 
message is confidential, intended only for the named recipient(s) above and may 
contain information that is privileged, attorney work product or exempt from 
disclosure under applicable law. If you have received this message in error, or are 
not the named recipient(s), please immediately notify corporate MIS at (860) 766-2000 
and delete this e-mail message from your computer, Thank 
you.*********************************************************************2

Reply via email to