3

What is the difference between binary and character datatype in MySQL? need examples and limitation info

1
  • 2
    Then start by looking at the documentation. Commented Aug 29, 2016 at 10:19

1 Answer 1

3

The BINARY and VARBINARY types are similar to CHAR and VARCHAR, except that they contain binary strings rather than nonbinary strings. That is, they contain byte strings rather than character strings. This means that they have no character set, and sorting and comparison are based on the numeric values of the bytes in the values. for more details

http://www.tutorialspoint.com/mysql/mysql-data-types.htm

http://dev.mysql.com/doc/refman/5.7/en/binary-varbinary.html

and also read

MySQL "binary" vs "char character set binary"

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.