Show / Hide Table of Contents

GetBitwiseAndStatement Method (DbProvider)

The first operand in a bitwise AND equation (the 'x' in the statement 'x & y')

The second operand in a bitwise AND equation (the 'y' in the statement 'x & y')

Formats a bitwise AND statement according to the language features of the underlying database type

Syntax

'Declaration

Public MustOverride Function GetBitwiseAndStatement( _
   ByVal _operand1_ As Object, _
   ByVal _operand2_ As Object _
) As String
public abstract string GetBitwiseAndStatement( 
   object _operand1_,
   object _operand2_
)

Parameters

operand1

The first operand in a bitwise AND equation (the 'x' in the statement 'x & y')

operand2

The second operand in a bitwise AND equation (the 'y' in the statement 'x & y')

Return Value

A properly formatted bitwise AND equation that will be recognized by the underlying database type.

Remarks

MSSQL and Oracle 9 and later recognize the standard C-style bitwise AND statement syntax (x & y). However, Oracle 8i and earlier required the use of the bitand() function to evaluate bitwise AND statements. This method helps SQL statement writers use AND syntax in their queries without concerns of the differences in database types.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server family

Reference

DbProvider Class
DbProvider Members

Back to top © 2022 Dovetail Software, Inc. - All rights reserved.
Clarify, Amdocs, and related products and names are copyright and trademark of Amdocs, Inc.
.NET, Visual Studio.NET, C#, Visual Basic and related products are trademark of Microsoft corporation.