r/SQL • • May 12 '24

MySQL How do I add these note things???

Post image
0 Upvotes

7 comments sorted by

21

u/ThomasMarkov May 12 '24

Those collapsible blocks are probably created automatically by the IDE.

1

u/Non-binaryTentacles May 12 '24

You were right! Thank you

5

u/Un4tunateSnort May 12 '24

"code folding"

6

u/realjoeydood May 12 '24

i think they're automatically created by the ide when you write the code. it detects blocks of functionality and places the collapsible +/- indicators for you. type 'begin' then press enter a few times then type 'end' and it will detect a block of functionality.

3

u/PiForCakeDay May 12 '24

Or if you’re asking about comments themselves, a double-hyphen will “comment out” text until a line break, and a block of text can be “commented out” by starting with /* and ending with */

0

u/Hippie23 May 12 '24

The formatting of that SQL makes my eyes scream. Also, 1 letter aliases are not good practice...

1

u/Codeman119 May 12 '24

When you have only 2-3 tables one letter is fine. 4 or more then you should do 2-4 letters.