About 45,400 results
Open links in new tab
  1. MySQL BINARY Function - W3Schools

    The BINARY function converts a value to a binary string. This function is equivalent to using CAST(value AS BINARY). Syntax

  2. binary and varbinary (Transact-SQL) - SQL Server | Microsoft Learn

    Nov 22, 2024 · Converting data to the binary and varbinary data types is useful if binary data is the easiest way to move around data. At some point, you might convert a value type to a binary value of large enough size and then convert it back.

  3. MySQL | BINARY Function - GeeksforGeeks

    Nov 21, 2019 · The BIN() function in MySQL converts a decimal number to its binary equivalent. The BIN() function is equivalent to the CONV() function written in the format CONV(number,10,2). In this format, the CONV() function converts the number 'number' from …

  4. 14.12 Bit Functions and Operators - MySQL

    For the BIT_AND(), BIT_OR(), and BIT_XOR() bit functions, the result type depends on whether the function argument values are evaluated as binary strings or numbers: Binary-string evaluation occurs when the argument values have a binary string type, and the argument is not a hexadecimal literal, bit literal, or NULL literal.

  5. MySQL BIN() Function - GeeksforGeeks

    Jun 10, 2024 · The MySQL BINARY function is used for converting a value to a binary string. The BINARY function can also be implemented using CAST function as CAST(value AS BINARY). The BINARY function accepts one parameter which is the value to be converted and returns a …

  6. Bit manipulation functions (Transact-SQL) - SQL Server

    May 23, 2023 · Bit manipulation functions such as moving, retrieving (getting), setting, or counting single bits within an integer or binary value, allow you to process and store data more efficiently than with individual bits.

  7. sql - Returning binary value from select query - Stack Overflow

    Jan 6, 2016 · If you want to cast string, you can try next SQL query. SELECT CAST(DB_NAME() AS VARBINARY(MAX)) as db_binary_name I've written small T-SQL function to convert varchar value to string binary value. Hope, this will be useful.

  8. MySQL BINARY function - A Complete Guide - MySQLCode

    Dec 31, 2021 · In this tutorial, we will study the MySQL BINARY function and go through some examples to understand its primary use. MySQL BINARY function is used to convert the expression to the binary string. A binary string is a string that …

  9. MySQL BINARY Function: Comprehensive Guide with Examples …

    Jan 26, 2024 · The MySQL BINARY function is a valuable tool for enforcing case-sensitive string comparisons and ensuring data integrity. By understanding its syntax, benefits, and limitations, you can leverage it effectively to write more precise and robust SQL queries.

  10. BINARY - SQL Tutorial

    In SQL, the BINARY data type is used to store binary data in a fixed-length format. Binary data is data that is composed of only 0s and 1s, such as machine code or encrypted data. The BINARY data type is similar to the VARBINARY data type, which is …

Refresh