/*!40100 DEFAULT CHARACTER SET latin1 */
-
Why is it between comment marks?
-
What is the 40100 all about?
-
What is the ! for?
-
What does it do?
-
Where is the documentation for this?
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.
It’s a conditional comment that can be interpreted by MySQL
The code 40100 means only these versions of MySQL>=4.1.0 (4.01.00) will interpret the conditional comment.
The
!is here to force MySQL to parse the code between the/* ... */It sets the value of the parameter DEFAULT CHARACTER = ‘latin1’ so that the data in an SQL dump can be intepreted correctly during import. It doesn’t affect the database structure, but merely helps the export/import process to work right.
http://dev.mysql.com/doc/refman/4.1/en/comments.html