r/learnSQL • u/Broad_River_6775 • Feb 08 '26
Loading Data in SQL
Hey, guys! Firstly, my apologies if this has been asked already; I tried searching for the answers to this question, but I've had a bit of trouble.
Basically, I'm trying to learn how to code with SQL after having spent the past six months learning data analysis and ML with Python.
In Python with Pandas, when analyzing any dataset, pretty much the first line of code I type up is the following:
df = pd.read_csv("Some_Data.csv")
This allows Python to load/read my spreadsheet file. What would be the SQL equivalent to this code? For more context, I use SQL Server.
View all comments
Show parent comment
1
u/Traditional-Bat-7006 Feb 09 '26
This! If it is a Flat File like CSV you can choose the wizard option. I used it in my first imports because it is easy to learn. But I already started using the BULK INSERT option.