tencent cloud

All product documents
TDSQL-C for MySQL
Description of Supported Bitwise Operations
Last updated: 2025-01-09 14:10:06
Description of Supported Bitwise Operations
Last updated: 2025-01-09 14:10:06
This document introduces supported bitwise operations in the read-only analysis engine, and enumerates type restrictions on input parameters. Input parameters and usage methods not mentioned in the document are not supported.

Supported Types of Bitwise Operations

Bitwise AND (&)

Syntax: value1 & value2 Supported data types for value1: int, bigint, double, decimal, varchar, and char. Supported data types for value2: int, bigint, double, decimal, varchar, and char.

Bitwise OR (|)

Syntax: value1 | value2 Supported data types for value1: int, bigint, double, decimal, varchar, and char. Supported data types for value2: int, bigint, double, decimal, varchar, and char.

Bitwise NOT (~)

Syntax: ~value1 Supported data types for value1: int, bigint, double, decimal, varchar, and char.

Bitwise XOR (^)

Syntax: value1 ^ value2 Supported data types for value1: int, bigint, double, decimal, varchar, and char. Supported data types for value2: int, bigint, double, decimal, varchar, and char.
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon