• takeda@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    11 months ago

    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 months ago

      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 months ago

        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.