Site Menu
- Home
- Products
- NexusDB
- Nexus Quality Suite
- NexusDB Drivers & Connectors
- Nexus Remoting
- Nexus Memory Manager
- Some of our Customers
- Testimonials and use(r)s
- Downloads
- Documentation
- Support
- Pricing & Orders
- About
- Community
- My Nexus
- Recently Updated ...
- Search...
- Site Login
Search
BitAnd
Wed, 01/07/2009 - 15:00 | hdanzl
0
DROP FUNCTION IF EXISTS "BITAND"; CREATE FUNCTION BITAND (N1 INTEGER, N2 INTEGER) RETURNS INTEGER BEGIN DECLARE nReturnValue,nS Integer DEFAULT 0; WHILE N1 > 0 AND N2 > 0 AND nS < 32 DO SET nReturnValue = nReturnValue + MOD(N1,2) * MOD(N2,2)* POWER(2,nS); SET N1 = N1 / 2; SET N2 = N2 / 2; SET nS = nS + 1; END WHILE; RETURN nReturnValue; END
Category:
SQL Functions & Procedures
Current Version:
1.00
Supported Products:
NexusDB V2
NexusDB V3
Questions? Problems?
- Interested to buy but something put you off?
- Can't find what you're looking for?
- Have a suggestion?
Let us know. If you're having trouble contacting us, please check here.
Site Updates
- Dec 4 2024 - 1:53pm
- Dec 4 2024 - 1:48pm
- Nov 19 2024 - 1:04pm
- Oct 17 2024 - 10:27am
- Jul 24 2024 - 1:22pm
Same as for "BitOr"
See my comment under "BitOr".