0

I'm trying to change my server from SQL Server to MYSQL Server. I just wondering what's the difference between the two binary(1632) in SQL and binary(255) in MYSQL. I wanted to know because it could affect the data that I am going to insert in the database.

binary(1632) = is the max value of binary in SQL Server

binary(255) = is the max value of binary in MYSQL

Thank you in advance. :)

1
  • 1
    Besides the obvious, that values may be truncated if you try to insert them in a smaller field? Besides, SQL Server's maximum binary field size is 8000 Commented Jul 19, 2013 at 9:22

1 Answer 1

1

Obviously, this has to do with the maximum size of the data the field is able to contain. If you really need the column be able to contain 1632 bytes of data, use the BLOB MySQL type instead.

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

3 Comments

so the equivalent of binary(1632) in sql is a blob(1632) in mysql?
I am not very familiar with SQL Server, but this is very likely to be -- although there is no such thing as BLOB(n) in MySQL, you cannot limit the size of a BLOB field, AFIK.
thanks, I take this as an option. I try to find more for other possible solution.

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.