From Excel to SQL - Comments (-- and /**/)
Adding good comments to your SQL code is a great way to make your code more accessible since it gives anyone who reads your code additional context that they might not have. They're also helpful while you're writing your code to test what the query outputs without some parts of the code! The dbfiddle website can be accessed for free and without an account at: - https://dbfiddle.uk/ Make sure to use the SQL Server dialect and the AdventureWorks sample database to be able to follow along with these examples! --------------------------------------------------- This is part of the From Excel to SQL playlist, available at: - https://www.youtube.com/playlist?list=PLEiRgvTilK5rhnVPQ_Tj3Q-CI0rGn_uiD Check out the previous video at: - https://youtu.be/yaomCldxZi4 ...and the next video at: - https://youtu.be/-0M-kEkoDqw --------------------------------------------------- CHAPTERS 00:00 Intro 00:28 Comments in Excel 01:40 Comments in SQL 04:11 Why bother with -- comments? 06:05 Why bother with /**/ comments? 08:25 Wrap up
Download
0 formatsNo download links available.