This seems to me like it should be obvious, but I haven't been able to find out how to do it.
In languages such as VB, VC++, Javascript, it is possible to do "bitwise comparison" on two numbers using AND, OR, etc. For example, 10 AND 2 would equal 2, since:
10 = binary 1010
2 = binary 0010
answer 0010 = 2
Is there an equivalent to this kind of thing in PL/SQL
Jonathan
j.w.george@virginnet.co.uk
Working against: Visual Basic 6, Access 97, Visual Interdev 6, VBScript, JavaScript, Active Server Pages, SQL Server, Oracle 7, XML
In languages such as VB, VC++, Javascript, it is possible to do "bitwise comparison" on two numbers using AND, OR, etc. For example, 10 AND 2 would equal 2, since:
10 = binary 1010
2 = binary 0010
answer 0010 = 2
Is there an equivalent to this kind of thing in PL/SQL
Jonathan
j.w.george@virginnet.co.uk
Working against: Visual Basic 6, Access 97, Visual Interdev 6, VBScript, JavaScript, Active Server Pages, SQL Server, Oracle 7, XML