Unsupported Screen Size: The viewport size is too small for the theme to render properly.

Meaning Of Dump Comments

forums forums SQLyog Using SQLyog Meaning Of Dump Comments

  • This topic is empty.
Viewing 2 reply threads
  • Author
    Posts
    • #10390
      maxhugen
      Participant

      I tried out a dump of the table structure, and noticed comment lines with what appears to be some sort of code in them, eg:

      /*!40101 SET NAMES utf8 */;

      Are these SQLyog-specific 'instructions' or what?

      MTIA

    • #24260
      peterlaursen
      Participant

      No, it is not SQLyog-specific.  It is a MySQL extension to standard SQL comment syntax.

      read

      /*!40101 … */

      as

      ” this is a comment if the MySQL server is not version 4.1.1 or higher “

      That means that mysql versions lower than 4.1.1 will treat it as a comment, versions higher will execute what is inside.

      Also non-MySQL databases will treat it as a comment! It is used for 'pseudo-commenting' MySQL specific and version-specific syntax.

      The ” ! ” is commonly used in C-style programming languages meaning 'NOT'

      You can search the MySQL documentation for 'comments' …

    • #24261
      maxhugen
      Participant

      Thanks for the explanation, Peter.

Viewing 2 reply threads
  • You must be logged in to reply to this topic.