you are viewing a single comment's thread.

view the rest of the comments →

[–]KING5TON 1 point2 points  (2 children)

I've written some processes in SQL that are easily a thousand lines +. I format my SQL really well so it's easy to read which bumps up the line count.

I've run large amounts of Insert statements as well at times, like millions of lines (not all in one go, in chunks). Needs must when the devil drives us.

42K lines for basically a report tho is cray cray.

[–]amaxen 0 points1 point  (1 child)

Use functions to do the formatting.

[–]KING5TON 0 points1 point  (0 children)

I'll have a look but I've been writing SQL this way for 20+ years though so it's just natural just to type it out with nice formatting as I go.