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

Home -> Community -> Usenet -> c.d.o.server -> Re: bitwise or on column

Re: bitwise or on column

From: Jusung Yang <JusungYang_at_yahoo.com>
Date: 22 Jul 2002 10:01:49 -0700
Message-ID: <130ba93a.0207220901.3e41446a@posting.google.com>


Check out this link by Connor McDonald for bitor and bitxor.

http://www.jlcomp.demon.co.uk/faq/bitwise.html

"Stephan Bressler" <stephan.bressler_at_siemens.com> wrote in message news:<ah0r4e$a82$1_at_news.mch.sbs.de>...
> Hi all,
>
> I'm looking for a function doing a bitwise or on a column (number)
> containing permissions, e.g. 1=read, 2=write, 4=exec, ... (so 5 = exec+read
> permission).
> There are several rows per user and all permissions should be aggregated.
> The function should be used like
>
> select bitor(permissions)
> from acl
> where username='scott tiger';
>
> TIA
> Stephan
Received on Mon Jul 22 2002 - 12:01:49 CDT

Original text of this message

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