FCFL.NET Common Library - API Reference
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 2003 family

See Also

Reference

DbProvider Class
DbProvider Members

 

 


© 2010 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.

Send comments on this topic.