http://www.winpg.jp/~saito/pgbouncer/
Pokazywanie postów oznaczonych etykietą binary. Pokaż wszystkie posty
Pokazywanie postów oznaczonych etykietą binary. Pokaż wszystkie posty
wtorek, 13 listopada 2012
środa, 9 czerwca 2010
Binary casting
Bo zawsze zapominam, a już nie raz potrzebowałem...
...cytat z oficjalnej dokumentacji ...
The following SQL-standard functions work on bit strings as well as character strings:
In addition, it is possible to cast integral values to and from type
...cytat z oficjalnej dokumentacji ...
Table 9.10. Bit String Operators
| Operator | Description | Example | Result |
|---|---|---|---|
|| | concatenation | B'10001' || B'011' | 10001011 |
& | bitwise AND | B'10001' & B'01101' | 00001 |
| | bitwise OR | B'10001' | B'01101' | 11101 |
# | bitwise XOR | B'10001' # B'01101' | 11100 |
~ | bitwise NOT | ~ B'10001' | 01110 |
<< | bitwise shift left | B'10001' << 3 | 01000 |
>> | bitwise shift right | B'10001' >> 2 | 00100 |
The following SQL-standard functions work on bit strings as well as character strings:
length, bit_length, octet_length, position, substring. In addition, it is possible to cast integral values to and from type
bit. Some examples: 44::bit(10) 0000101100 44::bit(3) 100 cast(-44 as bit(12)) 111111010100 '1110'::bit(4)::integer 14Note that casting to just “bit” means casting to
bit(1), and so it will deliver only the least significant bit of the integer.
Subskrybuj:
Posty (Atom)
Ginekolog dr n. med. Piotr Siwek
Gabinet ginekologiczny specjalista ginekolog - położnik dr n. med. Piotr Siwek
-
Problem solved ;) Client tool's installer does not provide all the required libraries, so the message: " sawjniapi643r.dll: Can...
-
http://www.ritzyblogs.com/OraTalk/PostID/104/How-to-configure-stunnel-for-Oracle-with-example How to configure stunnel for Oracle with...
-
1) Sprawdzamy do jakiego profilu należy dany user: SELECT profile FROM dba_users WHERE username = 'DBF' 2) Sprawdzanie jakie są...