• Dave@lemmy.nz
      link
      fedilink
      arrow-up
      0
      ·
      9 months ago

      Do people actually write SQL in all caps? Ever since I was a boy I’ve always written SQL (and HTML) in lower case.

      • PotatoesFall@discuss.tchncs.de
        link
        fedilink
        arrow-up
        0
        ·
        9 months ago

        I do it because it helps me visually separate SQL keywords from table and column names.

        Helps especially when your SQL is embedded in another file so there is no syntax highlighting.

        • Dave@lemmy.nz
          link
          fedilink
          arrow-up
          0
          ·
          9 months ago

          That’s a good reason. I guess when I’m directly writing SQL the queries are point in time and not part of some enduring codebase.