• takeda@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    11 个月前

    You need semicolons if it is a script with multiple commands to separate them. It is not needed for a single statement, like you would use in most language libraries.

    • mellejwz@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      11 个月前

      If you don’t use a semicolon directly in MySQL it won’t do anything until you add it.

      • takeda@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        11 个月前

        In the MySQL client console where you can run multiple commands.

        If you add semicolon in language library commands such as fetch() you will get an error.