Guest User

Untitled

a guest
Apr 23rd, 2018
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. SELECT X'01', B'00000001', X'01' = B'00000001';
  2. +-------+-------------+---------------------+
  3. | X'01' | B'00000001' | X'01' = B'00000001' |
  4. +-------+-------------+---------------------+
  5. | | | 1 |
  6. +-------+-------------+---------------------+
  7.  
  8. SELECT X'01' & B'00000001', X'01' & X'01', B'000000001' & B'000000001';
  9. +---------------------+---------------+-----------------------------+
  10. | X'01' & B'00000001' | X'01' & X'01' | B'000000001' & B'000000001' |
  11. +---------------------+---------------+-----------------------------+
  12. | 0 | 0 | 1 |
  13. +---------------------+---------------+-----------------------------+
  14.  
  15. SELECT _binary X'01' & _binary B'00000001', _binary X'01' & _binary X'01', _binary B'000000001' & _binary B'000000001';
  16. +-------------------------------------+-------------------------------+---------------------------------------------+
  17. | _binary X'01' & _binary B'00000001' | _binary X'01' & _binary X'01' | _binary B'000000001' & _binary B'000000001' |
  18. +-------------------------------------+-------------------------------+---------------------------------------------+
  19. | 0 | 0 | 0 |
  20. +-------------------------------------+-------------------------------+---------------------------------------------+
Add Comment
Please, Sign In to add comment