X
  • Search
  • Products
  • Services
  • Resources
  • About
  • Contact
  • Login

Copyright © 2023 MariaDB. All rights reserved.

  • Knowledge Base
  • Contact
  • Login
  • Search
  • Products
  • Services
  • Pricing
  • Resources
  • About Us
  • Download
Knowledge Base » MariaDB Server Documentation » Using MariaDB Server » SQL Statements & Structure » SQL Statements » Built-in Functions » Secondary Functions » Bit Functions and Operators
  • Home
  • Open Questions
  • MariaDB Server
  • MariaDB MaxScale
  • MariaDB ColumnStore
  • Connectors
Ask a question here
Localized Versions
  • Funzioni sui bit [it]

Bit Functions and Operators

Operators for comparison and setting of values, and related functions. They all return a result of the BIGINT UNSIGNED type

  • Operator Precedence

    under: » MariaDB Server Documentation » Using MariaDB Server » SQL Statements & Structure » Operators
    Precedence of SQL operators
  • &

    Bitwise AND
  • <<

    Left shift
  • >>

    Shift right
  • BIT_COUNT

    Returns the number of set bits
  • ^

    Bitwise XOR
  • |

    Bitwise OR
  • ~

    Bitwise NOT
  • Parentheses

    Parentheses modify the precedence of other operators in an expression
  • TRUE FALSE

    TRUE and FALSE evaluate to 1 and 0
  • ↑ Secondary Functions ↑
  • Encryption, Hashing and Compression Functions →
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.
  • ↑ Secondary Functions ↑
  • Bit Functions and Operators
  • Encryption, Hashing and Compression Functions
  • Information Functions
  • Miscellaneous Functions
Products
  • MariaDB Platform
  • MariaDB SkySQL
  • Pricing
  • Download MariaDB
Services
  • Remote DBA
  • SkyDBA
  • Enterprise Architect
  • Technical Support
  • Migration Practice
  • Consulting
  • Training
Resources
  • Documentation
  • Developers
  • Blog
  • Support
  • OpenWorks
  • Customer Stories
  • Events
  • MariaDB Roadshow
About
  • Contact
  • Leadership
  • Partners
  • Newsroom
  • Investors
  • Careers
  • Trust Center
  • Vulnerability Reporting
Contact

Subscribe to our newsletter!

  • Legal
  • Privacy Policy
  • Cookie Policy

Copyright © 2023 MariaDB. All rights reserved.