Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Bitwise operators in PL/SQL

Status
Not open for further replies.

Jonathan

Programmer
Mar 19, 1999
116
GB
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
 
Found it - its the BITAND function
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top