Connect to PostgreSQL from Python (Using SQL in Python) | Python to PostgreSQL

Поділитися
Вставка
  • Опубліковано 20 січ 2025

КОМЕНТАРІ • 183

  • @girijashamak9142
    @girijashamak9142 3 роки тому +50

    As a old woman learning to upgrade, I found your videos handy and very clear to catch up.I am one of your subscriber.I watched your SQL contents and simply loved it. So are your python concepts. Thank you for all your hardwork and is not easy to deliver.God bless and keep teaching people like me and others🙏

    • @techTFQ
      @techTFQ  3 роки тому +7

      Hi Girija,
      This is such a beautiful feedback… I cannot express my happiness hearing that my videos have helped you ..
      Each video takes a lot of effort to make and it’s all worth it when I get to hear such beautiful words from you guys..
      I am so great full that you took your time to leave me this feedback..
      THANK YOU 🙏🏼
      And I wish you all the best in your learning journey 🙂

    • @dudeparak5654
      @dudeparak5654 3 роки тому

      installed paycopg2 for python pycharm and imported to the project.But the functions like curson() execute() are not autopopulated when I calling with the connection object

  • @shakearound5789
    @shakearound5789 Рік тому +2

    You taught this fantastically! With your teaching I am able to immediately go away and use this knowledge on my own project - it's rare that anyone teaches me something that can enable me to do this with such ease. Look forward to watching more of your videos!

    • @techTFQ
      @techTFQ  Рік тому

      Thank you . Glad it helped

  • @prathagautam9872
    @prathagautam9872 Рік тому +2

    Instantly subscribed!
    You mentioned all the details like preventing sql injection, using the 'with' clause, and so on (unlike other youtube tutors who just skip these ), so it's really helpful and you're a fantastic teacher! 💯

  • @gabip265
    @gabip265 Рік тому +4

    Such a comprehensive and quick tutorial to get the basics! I recommend this tutorial after watching neural nine crash course for python and postgres. This really gives you more efficient and clean solutions for writting code.

  • @mtmanalyst
    @mtmanalyst 2 роки тому +4

    This is really great stuff!
    I'm a math, ml, guy and I feel like I'm learning great python techniques here
    THANK YOU
    Morgan

  • @AlejandroMéndez-j6j
    @AlejandroMéndez-j6j 10 місяців тому

    Very nice video. Not only showing how to get things done but also details like the try block, the little scripts (to reuse code) and stuff.

  • @manohar3787
    @manohar3787 Місяць тому

    straight to the point and concise. appreciate your hard work in helping us learn.

  • @dimplesantoshi8561
    @dimplesantoshi8561 2 роки тому +2

    Very Nicely explained...Clarity was maintained from the beginning till the end of the video. Thank you so much!

    • @techTFQ
      @techTFQ  2 роки тому

      Thank you Dimple :)

  • @Makingdifference100
    @Makingdifference100 2 роки тому +6

    You saved me today. Thanks, awesome video. Can you do more videos like this one, please? I love your method of teaching you are a natural teacher. Thank you! Absolutely a fantastic video!!!!!

    • @techTFQ
      @techTFQ  2 роки тому

      Thank you so much Santos and sure will do

  • @КаринаАндрян
    @КаринаАндрян 10 місяців тому

    The explanation is really clear! It is easy to understand what you are doing. Great job!

  • @christophernguyen9834
    @christophernguyen9834 3 місяці тому

    prob the best video i've watched in a while. thanks for this man!

  • @NiceChange
    @NiceChange Рік тому

    Dude. Love this video. demystifying postgres with python. Great work!!! this video goes in the vault. Thank you.

  • @ruthaipoh8373
    @ruthaipoh8373 2 роки тому +4

    This video was quite helpful. Saved me a lot of time and very comprehensive too. Thank you🙏

  • @YoYoNo.1official
    @YoYoNo.1official 11 місяців тому +1

    THanks Bro Luv From India❤️

  • @skillhorizon
    @skillhorizon 5 місяців тому

    God bless you for sharing valuable knowledge with practical example. Thank you so much.

  • @Latif127
    @Latif127 Рік тому

    Thoufiq, it is a very clear, easy and helpful tutorial, you covered a lot. Thank you.

  • @NiceChange
    @NiceChange Рік тому

    This video is pure gold!!! Thank you for doing such a great job on this.

  • @shiblyaziz9553
    @shiblyaziz9553 2 роки тому +2

    Thank you! Absolutely a fantastic video!!!!!. I love your teaching method.

    • @techTFQ
      @techTFQ  2 роки тому

      Thank you 🙏🏼
      Glad this helped

  • @karunakaranr2473
    @karunakaranr2473 Рік тому

    I have been watching your tutorials and really awesome.. Thank you for your time and effort..

  • @ashaoluayanfe7474
    @ashaoluayanfe7474 2 роки тому

    Thank you so much for the video, I was having problems with rollback, any single mistake that I made, I had to start all over, but your video showed me a better approach.

  • @anurasenarathna1703
    @anurasenarathna1703 2 роки тому +1

    Very informative and very clear. Thank you for sharing your knowledge.

    • @techTFQ
      @techTFQ  2 роки тому

      Your welcome Anura,
      Glad this helped

  • @diegofernandosotoflores7175

    Gran video, acarreando el proyecto. Un grande Thoufiq

  • @mickyelmb
    @mickyelmb 2 роки тому +2

    Great tutorial, very helpful. Thank you for posting it.

    • @techTFQ
      @techTFQ  2 роки тому

      Glad this helped

  • @sivajyothichandra
    @sivajyothichandra Рік тому

    Really. You covered the basic table with DDL, DML along with try, except, format string, tuple very understandable way. I heard using of iterators instead of for loop.

  • @mtmanalyst
    @mtmanalyst 2 роки тому +1

    Excellent !!!
    Thank you
    Morgan

  • @sayeedahmed4711
    @sayeedahmed4711 5 місяців тому

    Thanks for sharing, very helpful in learning.

  • @festisanat1982
    @festisanat1982 2 роки тому

    Bro thank you a lot for the info . I love your method simple and easy.
    Keep the good work pls you a live saver. In programing I mean hh

  • @dogedingo1535
    @dogedingo1535 2 роки тому

    Very clear and instructions where easy to follow! Thanks for this video.

  • @WICKED21SUNNY
    @WICKED21SUNNY 2 роки тому

    very help video for me as I am new to python programming

  • @piyushtalegaonkar2940
    @piyushtalegaonkar2940 2 роки тому

    woooo man THANK YOU SO MUCH you helped me a lot bro, you literally made this so easy to understand and spot on
    I just started learning python and my manager is like I need results , you made my life easy by posting this video !!!!
    🙏🙏🙏

  • @status_dev
    @status_dev 2 роки тому +1

    Thx for the video, very useful and easy to understand! great job!😀😀😀😀😀😀😀😀SUPER VIDEO

    • @techTFQ
      @techTFQ  2 роки тому

      Glad you liked it!!

  • @bendibhafed1687
    @bendibhafed1687 2 роки тому +1

    Great job Mr. Thoufiq.

    • @techTFQ
      @techTFQ  2 роки тому

      Thank you Hafed 🙏🏼

  • @okondivine4918
    @okondivine4918 2 роки тому

    This a fantastic video....Pure gold!

  • @kunrath
    @kunrath 2 роки тому +1

    Thx for the video, very useful and easy to understand! great job!

  • @sowmiyanadarajan8041
    @sowmiyanadarajan8041 2 роки тому +1

    Thanks for the video TFQ..I want more python tutorial and sql as well

    • @techTFQ
      @techTFQ  2 роки тому

      Noted bro , I’ll get to python soon

  • @ShenderRamos
    @ShenderRamos 2 роки тому

    Great video, well explained, organized and efficient

  • @DanjumaMuhammad
    @DanjumaMuhammad 2 роки тому

    Very quick, clear and easy to catch. Thanks:)

  • @Rainmakeroffire
    @Rainmakeroffire Рік тому

    This was very helpful man, thanks a lot.

  • @pranshulsingh2216
    @pranshulsingh2216 2 роки тому

    Thank you so much, really it’s very helpful to me to understand how it’s working together . Thanks a lot.😊😊

  • @MrutyunjayNayak
    @MrutyunjayNayak 2 роки тому

    Brilliant video bro…I am learning python now. Your videos are crisp and self explanatory. Subscribed❤

  • @DipikaChotiya
    @DipikaChotiya 6 місяців тому

    Very helpful video.... Thank you so much😊😊

  • @sssaamm29988
    @sssaamm29988 2 роки тому +2

    Wow,just one watch i could grasp most of the content.Havent felt boring at any point of time.great job!

    • @techTFQ
      @techTFQ  2 роки тому +1

      Glad you liked it Sampath

  • @ratneshraj4653
    @ratneshraj4653 2 роки тому

    Please continue making more dedicated videos in Python just like SQL.
    THANKS IN ADVANCE

  • @anduamlaktadesse9284
    @anduamlaktadesse9284 2 роки тому +1

    Thank you sir for everything! It's really appreciated!

    • @techTFQ
      @techTFQ  2 роки тому

      Glad you like them

  • @fathimafarahna2633
    @fathimafarahna2633 3 роки тому +1

    Superb.. You have an amazing explaining skills👍👍👍

    • @techTFQ
      @techTFQ  3 роки тому

      Thank you ❤️

  • @MyrLin8
    @MyrLin8 9 місяців тому

    on first blush this seems quite good :) subscribed.

  • @pushkarratnaparkhi2205
    @pushkarratnaparkhi2205 2 роки тому

    very useful video. Thanks a lot.

  • @jaisharma5794
    @jaisharma5794 5 місяців тому

    Thanks for this Taufiq - great help. Just a suggestion. Perhaps you could include a use case for multiple cursors? Also, a piece on implementing config file. Thanks again for a wonderful video - Jai

  • @sacrupe
    @sacrupe Рік тому

    this video was really helpful, thank you

  • @mohammedshahil4898
    @mohammedshahil4898 3 роки тому +2

    Really helpful 👌🏻 Keep up the good work🙌🏻👍🏻

    • @techTFQ
      @techTFQ  3 роки тому

      Thank you hero ❤️🙏🏼

  • @ErikS-
    @ErikS- 2 роки тому

    Excellent video.

  • @alexandrelucas5621
    @alexandrelucas5621 2 роки тому +1

    Very informative! Thanks!

    • @techTFQ
      @techTFQ  2 роки тому

      Glad you liked it

  • @Simple.Simple779
    @Simple.Simple779 2 роки тому

    you are my life saver...

  • @eedigamaneesha
    @eedigamaneesha 4 місяці тому

    Usefull ♥️♥️

  • @yayasssamminna
    @yayasssamminna 7 місяців тому

    suggestion : make a video explaining what goes into a config file and where to find all that information. I have trouble understanding how to switch from database administration to the rest of my code. thanks, great video !!!

  • @nigarsultana1739
    @nigarsultana1739 2 роки тому

    Thank you so much for your efforts!!!

  • @milindankur
    @milindankur 2 місяці тому

    For people like me who notice personal libraries a lot, that in the background is "Getting Things Done" by David Allen. I recommend it to be a must-read book along with "HyperFocus" by Chris Bailey which complements each other.
    You're welcome!

  • @stephenmusangi8976
    @stephenmusangi8976 2 роки тому

    Awesome video

  • @makhmud_jumanazarov
    @makhmud_jumanazarov 2 роки тому

    thank you for useful content

  • @kondanikhilkumar2198
    @kondanikhilkumar2198 11 місяців тому

    Attracted to subscribe,Thank you

  • @anubratadas1
    @anubratadas1 Рік тому

    Thank you for this great video

  • @maxx27i
    @maxx27i 2 роки тому

    Very nice explanation! 👏

  • @radhakrishnanaik5656
    @radhakrishnanaik5656 2 роки тому +2

    You did great job and explained in simple steps.can you please prepare a video on exporting CSV from postgreySQL to python in pipeline?

    • @techTFQ
      @techTFQ  2 роки тому

      thank you Naik and sure will consider it for the future

  • @Hlangwaneamukelani
    @Hlangwaneamukelani Рік тому

    Great stuff, Thank You.

  • @byte0me
    @byte0me 8 місяців тому

    Super helpful thank you!

  • @umaanil3344
    @umaanil3344 3 роки тому +1

    Great tutorial..👏👏

    • @techTFQ
      @techTFQ  3 роки тому

      Thank you Anil 🙏🏼

  • @mkgeidam
    @mkgeidam 2 роки тому

    Excellent Python Tutorials keep it up!!! @techTFQ

  • @hoanglam2814
    @hoanglam2814 2 роки тому

    short and concise. thank you!

  • @saic3149
    @saic3149 3 роки тому +2

    Super explanation really helpful… please cover ‘csv’ module in python

    • @techTFQ
      @techTFQ  3 роки тому

      Thank you so much 🙏🏼
      Really glad you found this helpful 🙂
      Sure will consider your feedback to make a video on csv module..

  • @sivahanuman4466
    @sivahanuman4466 2 роки тому +1

    Great sir

    • @techTFQ
      @techTFQ  2 роки тому

      Thank you ☺️

  • @kashmirshadows8150
    @kashmirshadows8150 3 роки тому +1

    Thank you Thoufiq

    • @techTFQ
      @techTFQ  3 роки тому

      Your welcome 🙏🏼

  • @JCokee
    @JCokee 2 роки тому

    This was 22 minutes and 57 seconds of pure AWESOME! Thank you so much! Python & PostgreSQL 101.

  • @FIXENDIARY
    @FIXENDIARY 7 місяців тому

    Superb

  • @akashsivasubramanian4067
    @akashsivasubramanian4067 3 роки тому +1

    very clear. thanks a lot.

    • @techTFQ
      @techTFQ  3 роки тому

      You are welcome Akash!

  • @ROMAN-zu3wu
    @ROMAN-zu3wu 2 роки тому

    Great tutorial bro

  • @gururajarao7833
    @gururajarao7833 Рік тому

    very good video. You could have also covered how to use config file for database connection parameters

  • @SanjiVSwaraJ
    @SanjiVSwaraJ 2 роки тому

    Awesome..

  • @azeszterifi
    @azeszterifi Рік тому

    just brilliant!

  • @anilsana105
    @anilsana105 2 роки тому +1

    clear one

  • @rics6035
    @rics6035 2 роки тому

    great video! thanks a lot

  • @yeskaminakuritsova9368
    @yeskaminakuritsova9368 5 місяців тому

    THANK YOU!!! ❤

  • @hoanglam2814
    @hoanglam2814 2 роки тому

    love this one!

  • @malavans
    @malavans 2 роки тому

    Excellent video!!! One thing to clarify, what’s the difference between connecting this through SQLAlchemy with psycopg2 driver and connecting via psycopg2 driver straight away.

  • @jessemonisha8018
    @jessemonisha8018 Рік тому

    Super

  • @timtech9361
    @timtech9361 3 роки тому +1

    Question. When creating the table, for the PRIMARY KEY which is id. Can you use SERIAL instead of INT? Asking since
    SERIAL will automatically address this as the PRIMARY KEY and the id will always be unique? I am assuming since the id will not have duplicates.

    • @techTFQ
      @techTFQ  3 роки тому +1

      Yea you can use SERIAL as the data type for the primary key ID column..
      I just used INT for this particular example

  • @younesdeveloper
    @younesdeveloper 10 місяців тому

    top one

  • @cruizersofthemilleni
    @cruizersofthemilleni Рік тому

    Thank you so much. Your video was really helpful. Do you have similar videos on pandas data frame using PostgreSQL? Thanks again.

  • @samucancld
    @samucancld 2 роки тому

    buenísimo loko

  • @nihalmohammed8093
    @nihalmohammed8093 2 роки тому +1

    111,000th Subscriber

  • @pusapatinarasimharaju956
    @pusapatinarasimharaju956 2 роки тому

    sir what is the use of python to postgresql.we can dirctly write sql in postgresql in database for all the operations.please reply

  • @GuillermoPalchik
    @GuillermoPalchik Рік тому

    Great video. How does one go about creating, storing, and using the config file?

  • @mariacamiladurangobarrera2821
    @mariacamiladurangobarrera2821 2 роки тому

    Thank you!

  • @nadeeradulan9231
    @nadeeradulan9231 2 роки тому

    Thanks Bro!

  • @TheToric
    @TheToric 3 роки тому

    given that the context manager does not close the connection, is there any advantage of putting the connection under a contex manager?

  • @ruphashree
    @ruphashree Рік тому

    Thank you sir

  • @vinoddevasani
    @vinoddevasani Рік тому

    This is awesome, But can we print the column names also in the Console/Output? Your code is just displaying the data.

  • @mohammedkarimuddin8472
    @mohammedkarimuddin8472 Рік тому

    Which database is mostly used in IT industry Oracle or PostgreSql.
    Can you please tell me

  • @CaribouDataScience
    @CaribouDataScience 2 роки тому

    How would we insert a dataframe into a pg database?

  • @shashankemani1609
    @shashankemani1609 2 роки тому +1

    hi I am getting "Is the server running on that host and accepting TCP/IP connections?" error and am unable to fix it. Not sure if I have to do any other config changes as I am using mac m1. any help would be appreciated.

    • @mdevstuff
      @mdevstuff Рік тому

      make sure you have installed postgreSQL

    • @mdevstuff
      @mdevstuff Рік тому

      @shashank emani

    • @mdevstuff
      @mdevstuff Рік тому

      if u have already installed postgreSQL then check urr firewall

  • @owenjohnson5030
    @owenjohnson5030 11 днів тому

    For some reason I’m not able to create the table. I’m able to connect to the server but when I execute the create table script and commit nothing happens. I’m not getting any errors. Just nothing shows up in the DB.