r/Python • • Dec 29 '22

Discussion Is SQL a prerequisite to learning Python ?

I would like to learn how to automate some simple tasks like : 1- downloading an attachment from outlook, change its name and save to a specific folder

2- save an excel sheet as PDF then send it via outlook … with changing dates on the subject line of the email.

Do I need to learn SQL , then move to Python to learn automating such tasks ? Or I can jump in and start learning Python with very BASIC COMMON knowledge of SQL?

0 Upvotes

29 comments sorted by

View all comments

51

u/space_wiener Dec 29 '22

Nope. I’ve written hundreds of scripts and apps, maybe two of those interacted with SQL and I googled most of the syntax I needed.

SQL is for databases. What you described has nothing to do with that.

1

u/[deleted] Dec 29 '22

Thank you so much

Is what I asked above fall under general learning of Python ? Meaning .. I hear that ppl use Python for web dev and app dev … but what I need is automating stuff

3

u/Pgrol Dec 29 '22

You can use whats called an ORM written in python like SQLAlchemy. It will let you write sql with python syntax.