I’m coming from a SQL Server background. What would the equivalent data types be for the following in MySQL:
NVARCHAR – provides support for international, multi-byte characters for all languages
NVARCHAR(max) – allows for very long text documents
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Going by http://msdn.microsoft.com/en-us/library/ms186939.aspx, I would say that
is the closest equivalent. But I don’t see many people using this, more often people use:
As far as I am aware, both charactersets utf8 and ucs2 allow for the same characters, only the encoding is different. So either one should work, and I would probably go for the latter since it is used more often.
There are some limitations in MySQL’s unicode support that may or may not apply to your use case. Please refer to http://dev.mysql.com/doc/refman/5.0/en/charset-unicode.html for more info on MySQL’s unicode support.