Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BITTEST & Oracle
Message
From
15/09/2004 12:48:12
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00941925
Message ID:
00942502
Views:
20
>I believe you can use SUBSTR function in Oracle and SQL would look like:
>
>SELECT EMP.pers_no FROM EMP WHERE SUBSTR(EMP.login_lvl, 7, 1) = '1'
>

This will not work. In the example below, if the field 'EMP.login_lvl' has '39296' stored in character string format.
SELECT EMP.pers_no FROM EMP WHERE BITTEST( VAL(EMP.login_lvl), 7 )
That string is converted to Numeric. Then the BITTEST() sees it as: "1001 1001 1000 0000" Which is the binary equivilent of "39296"

Thanks anyway.
Mike
Previous
Reply
Map
View

Click here to load this message in the networking platform