Python SQLite Tutorial: Build a Python project with a SQLite database

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ม.ค. 2025

ความคิดเห็น • 105

  • @erkayberkant1828
    @erkayberkant1828 8 หลายเดือนก่อน +5

    I watched many tutorials about Sqlite, but the way you teach this, is really the best.

    • @tecladocode
      @tecladocode  8 หลายเดือนก่อน

      Thank you very much! Glad you liked it 😁

  • @FNMonsters
    @FNMonsters 4 ปีที่แล้ว +22

    I've view many many tutorials on sqlite3 with python. None of them compare to this. Thank you so much. Subbed!

    • @tecladocode
      @tecladocode  4 ปีที่แล้ว +2

      Thank you Dane! For both the comment and the sub!

    • @moeezabdul2000
      @moeezabdul2000 3 ปีที่แล้ว +1

      Totally Agree! 100%100!

  • @augurelite
    @augurelite 3 ปีที่แล้ว +3

    What a fantastic tutorial! Worth every minute. As a mostly self-taught beginner programmer, I feel like I learned some really good coding practices too! Thank you so much

  • @jawadmansoor6064
    @jawadmansoor6064 2 ปีที่แล้ว

    After seeing a tons of videos on SQL I say this is the BEST tutorial of all times about SQL. Subscribed and liked.

  • @beybey444
    @beybey444 ปีที่แล้ว

    As a coffee and coding lover, i had the BEST 37 minutes for today

  • @novicetech1
    @novicetech1 ปีที่แล้ว

    I'm a latecomer to the party, but this was a very good tutorial. I learned a lot. I will review this code carefully and try to implement this approach any time I need a database. Excellent stuff. Thanks.

  • @AlexanderColaneri
    @AlexanderColaneri 4 ปีที่แล้ว +2

    Very good, thank you for your content! I had to put the video speed to 0.75 while working on my project, to clearly understand everything, and it worked out.

    • @tecladocode
      @tecladocode  4 ปีที่แล้ว +1

      That's awesome to hear, Alexander! Glad the video was helpful!

  • @zukofire6424
    @zukofire6424 2 ปีที่แล้ว

    thanks for this Teclado, very helpful in the context of my internship at a start up!

  • @moeezabdul2000
    @moeezabdul2000 3 ปีที่แล้ว +1

    Absolutely, a Beauty of a Video Honestly!
    Really Appreciated Your Knowledge & Support on this!
    Liked & Subscribed!

  • @notsaeed
    @notsaeed 3 ปีที่แล้ว +1

    Thank you so much. This was the only helpful resource I could find.

  • @naveenkumarthangavelu4220
    @naveenkumarthangavelu4220 3 ปีที่แล้ว +1

    Thank you so much for this course. Apart from SQLITE. I also learnt more about how to call the function and arguments.
    It was so crisp and easy to understand . Thank you much for this video

    • @harshtomar1475
      @harshtomar1475 2 ปีที่แล้ว

      hello sir, i am an student , i want to ask one question

    • @enescelebi2411
      @enescelebi2411 2 ปีที่แล้ว

      @@harshtomar1475 what's your question?

  • @sobiralimov7777
    @sobiralimov7777 2 ปีที่แล้ว

    Wooooww. It's amazing course for me. I enjoyed and learned much. Thanks for all!

  • @2kpresident363
    @2kpresident363 3 ปีที่แล้ว +1

    Great video! One of the best about python and sqlite!Thank you so much!

  • @roybarretto9552
    @roybarretto9552 3 ปีที่แล้ว

    This is an awesome video lesson (not coffee bean). Brief and simple but clear and easy to understand. Thanks. Will put this code into GUI as a tkinter project. Gracias.

  • @leonardofreitas8900
    @leonardofreitas8900 2 ปีที่แล้ว

    This video is excellent! All very well explained. Thanks for sharing!

  • @meylyssa3666
    @meylyssa3666 4 ปีที่แล้ว +1

    Thanks for clear and understandable explanations!

  • @FunDumb
    @FunDumb 11 หลายเดือนก่อน

    Very well thought out. 👏

  • @Motivation_into_coding
    @Motivation_into_coding ปีที่แล้ว

    Thanks my brother man, I have a task to submit for bookstore which will allow to update delete search an add using sqlite3 with menu to display with the input using function, u help me a lot by following this video

    • @tecladocode
      @tecladocode  ปีที่แล้ว

      Glad it helped. Thanks for the comment and the kind words!

  • @foucault9978
    @foucault9978 3 ปีที่แล้ว

    Excellent video. Muchisimas gracias José!

  • @cheesefries6616
    @cheesefries6616 ปีที่แล้ว +1

    Hi! I'm just a beginner and just asking why you didn't use the commit() and the cursor in this program?

  • @normalman7663
    @normalman7663 3 หลายเดือนก่อน

    Bro you are so underrated keep foing great job ❤

    • @tecladocode
      @tecladocode  3 หลายเดือนก่อน +1

      I will! Thank you 💪

  • @sirius_school
    @sirius_school 2 ปีที่แล้ว

    I have an error in the (user_input := input(MENU_PROMPT)) 25:40 help me please!

  • @stevemorse5052
    @stevemorse5052 3 ปีที่แล้ว

    Thanks for a great tutorial.
    The only problems I had was the interface device between the chair I was sitting on and the computer keyboard.
    I do not think the 3 beers and a large vodka tonic had anything to do with it!.
    I got the whole thing done in less than 2 hours, including my errors.
    Thanks again.

  • @nachiketasharma5791
    @nachiketasharma5791 3 ปีที่แล้ว

    Perfectly explained!!!

  • @acbattery
    @acbattery 4 ปีที่แล้ว

    Thx for this great tutorial. At 23:54 "...fetchone()", Would fetchall() instead work as well because the SQL command (LIMIT1) already limited the result to 1? just wondering

    • @tecladocode
      @tecladocode  4 ปีที่แล้ว

      It would, but you’d get a Cursor of one element instead of just the element directly.

  • @esspi9
    @esspi9 4 ปีที่แล้ว

    This was awesome!
    Thanks a lot!
    Subbed!

  • @hardstylefreakzz
    @hardstylefreakzz 3 ปีที่แล้ว

    Solid work, thanks!

  • @namwanzaronald9436
    @namwanzaronald9436 2 ปีที่แล้ว

    Great tutorial !!.

  • @aabhaskrjha
    @aabhaskrjha 4 ปีที่แล้ว +1

    Both on udemy and TH-cam you're a rockstar.

    • @tecladocode
      @tecladocode  4 ปีที่แล้ว +1

      You’re the rock star Abhas Jha! 🔥

    • @reghaabraham
      @reghaabraham 4 ปีที่แล้ว

      He sincerely is. The mode of presentation and above all, he always answers when you call with your challenge.

  • @georgeseese
    @georgeseese 2 ปีที่แล้ว

    Thanks. SQliteStudio also provides access to the database.

  • @dogarayunanagani6986
    @dogarayunanagani6986 2 ปีที่แล้ว +1

    wow you are just so amazing! You explain so well and make your code very readable. you do have great coding practices I hope to pick up.
    Just one question though, I noticed you did not use the "cursor" is that something that is optional? some other tutorials I watched used cursor.connection and at the end cursor.close, connection.close. I would love if you can explain a bit about these use cases.

  • @kinjalvora256
    @kinjalvora256 4 ปีที่แล้ว +3

    Hi I have a quick question...what about cursor in sql?
    don't we need it?

    • @arctitan7076
      @arctitan7076 4 ปีที่แล้ว +1

      I had the same question and found the answer in the Python sqlite documentation.
      It is explained in the section Using sqlite3 efficiently

  • @ReadyF0RHeady
    @ReadyF0RHeady 2 หลายเดือนก่อน

    how can i do this with a greater existing database scraped from a website and saved as csv/json file?

  • @suhanoves
    @suhanoves 4 ปีที่แล้ว +1

    Hey, Jose! It's awesome video, but how about database and OOP classes? Did you think to create new video how to modify your program for getting data from database and recreating class?

  • @pythonenthusiast9292
    @pythonenthusiast9292 4 ปีที่แล้ว

    Your teaching is awesome by the way, please make a course on complete DSA with python !!

    • @pythonenthusiast9292
      @pythonenthusiast9292 4 ปีที่แล้ว

      or maybe just make a course on problem solving based on different topics and data structures like array , linkedlist , and greedy maybe. I think people will be interested in watching it . I'll buy for sure

  • @johannesklug8006
    @johannesklug8006 2 ปีที่แล้ว

    Great tutorial. I got a question on the data model: shouldn't the name of the table (that is of the entity-type) be something like "coffee experiments"? Than the ill-named column "name" would be "bean". After all, we can imagine using "awesome arabica" once with a perlocator und once with the espresso method.

  • @NormannCfC
    @NormannCfC ปีที่แล้ว

    That was great! THX

  • @mrozyyev2853
    @mrozyyev2853 ปีที่แล้ว

    Great video! Liked & Subbed. But can't find the code/project link.

  • @thegreatgaespi
    @thegreatgaespi 3 ปีที่แล้ว

    Thank you for awesome video clip

  • @utm13n
    @utm13n ปีที่แล้ว

    Great video! Is the example code available online?

  • @SatishKumar-mn6bi
    @SatishKumar-mn6bi 4 ปีที่แล้ว

    Can we see multi line text (text box widget) in such program with sqlite 3.

  • @akhilamadhu7069
    @akhilamadhu7069 4 ปีที่แล้ว +3

    For me the line while(user_input := input(MENU_PROMPT)) is giving syntax error. Can u tell y

    • @saeedpourjafar261
      @saeedpourjafar261 4 ปีที่แล้ว +1

      Walrus operator (:=) is the feature that was added in the Python 3.8
      You've raised error because probably your python version is below 3.8. Update your python version will fix it.

  • @orlandoortega4504
    @orlandoortega4504 2 ปีที่แล้ว

    got stuck in minute 26 my terminal says File "/Users/orlandoortega/Desktop/datasbases/app.py", line 22, in

  • @Anonymous-my5ud
    @Anonymous-my5ud 4 ปีที่แล้ว +3

    AttributeError: __enter__
    I'm getting this error while running
    def create_table(connection):
    with connection:
    Any Idea?

    • @herono-4292
      @herono-4292 3 ปีที่แล้ว

      you need to add this at the end
      connection.execute(CREATE_BEANS_TABLE )

  • @aabhaskrjha
    @aabhaskrjha 4 ปีที่แล้ว +1

    Hey Jose, please do make a video on python flask /django app deployment

    • @tecladocode
      @tecladocode  4 ปีที่แล้ว +1

      Hey Abhas, we've got the Microblog video which uses Flask. Check out our channel!
      We're thinking about Django content, but we don't use it, so it's a bit tricker...

    • @aabhaskrjha
      @aabhaskrjha 4 ปีที่แล้ว +1

      @@tecladocode Ah thanks
      It's fine with flask I work with flask too

  • @jusdzakybungasmuhammad2951
    @jusdzakybungasmuhammad2951 4 ปีที่แล้ว

    is there a way to update the record using user input???
    ive been trying to find the answer for hours but i still havent found the solution
    anyhelp???

  • @marisabeltrejo4081
    @marisabeltrejo4081 2 ปีที่แล้ว

    I am unable to "import database"
    Is there a download I am missing?

  • @irishronan5159
    @irishronan5159 4 ปีที่แล้ว

    Would there be a way to set up a function that edits the method or the rating of a bean? If so what would it look like

    • @tecladocode
      @tecladocode  4 ปีที่แล้ว

      Sure thing ! You can use the SQL UPDATE statement to do that. For example: UPDATE beans SET method = "Filter" WHERE name = "My Bean";
      Just don't forget the WHERE, as if you do you'll change every bean in your table.
      More info: pysql.tecladocode.com/section04/lectures/06_updating_data/

  • @WCdesign999
    @WCdesign999 4 ปีที่แล้ว +3

    hi, "import database" actually doesn't work for me any ideas?

    • @mini_mouseinthehouse
      @mini_mouseinthehouse 3 ปีที่แล้ว

      I am also having this problem!

    • @BM-vq5rp
      @BM-vq5rp 3 ปีที่แล้ว

      I wonder if replying 1 year later is late, but...
      if u are literally typing "import database", its wrong, u r meant to import the name of your database file.

    • @joshuaarguelles6969
      @joshuaarguelles6969 3 ปีที่แล้ว

      @@BM-vq5rp how??

  • @oogiemcguire8578
    @oogiemcguire8578 4 ปีที่แล้ว +2

    Is the final code any place we can download it and run it?

    • @stevemorse5052
      @stevemorse5052 3 ปีที่แล้ว

      Hi Oogie
      I understand that you posted this 9 months ago, but may I suggest that you copy the code from the screen.
      That is how I do it (see my post above).
      I am able to remember more of the code that way.
      Try it, and if that does not work for you, let me know and I will get the code to you somehow.
      Later mate

  • @thoughtslibrary
    @thoughtslibrary 4 ปีที่แล้ว

    Bro, i become fan to your videos

    • @tecladocode
      @tecladocode  4 ปีที่แล้ว

      Thank you so much 😀 Glad you're enjoying the videos!

  • @leonardkabasa1902
    @leonardkabasa1902 3 ปีที่แล้ว

    Halo are you available to help someone struggling with tkinter n sqlite

  • @dianamulaikhanova
    @dianamulaikhanova ปีที่แล้ว

    OK, how we can run it, how we can see the result, interesting

  • @mayeeshamasud5527
    @mayeeshamasud5527 3 ปีที่แล้ว

    Thank you so much! :)

  • @jasonmartin3147
    @jasonmartin3147 3 ปีที่แล้ว +1

    When I run app.py I get an error sating No module named 'database'. Anyone have any ideas?

  • @prakashkombala
    @prakashkombala 3 ปีที่แล้ว

    very good tutorial I can get PowerPoint presentation file

  • @dansundell1663
    @dansundell1663 2 ปีที่แล้ว

    any chans to get your code?

  • @pythonenthusiast9292
    @pythonenthusiast9292 4 ปีที่แล้ว

    what if we didnt use sqlite3 module? we can still store the details in lets say dictionary and still access all the queries right? what is advantage of using SQL here ?

    • @tecladocode
      @tecladocode  4 ปีที่แล้ว +2

      Using SQLite will let you store the data permanently, whereas leaving it in a dictionary means the data will be lost when the application ends. Also, the SQL language is very powerful and lets you query the data in ways that a normal dictionary doesn't (not as easily, at least).

    • @pythonenthusiast9292
      @pythonenthusiast9292 4 ปีที่แล้ว

      @@tecladocode thanks!

  • @ananicolel.ramilo2472
    @ananicolel.ramilo2472 3 ปีที่แล้ว

    Hi can you please show us how to do the insert query in this data base hope you'll notice me 🙏🥺

  • @bosworthjb
    @bosworthjb 3 ปีที่แล้ว

    Nice!

  • @SatishKumar-mn6bi
    @SatishKumar-mn6bi 4 ปีที่แล้ว

    Sir your speed is fast again screen is dark so we could not see list of beans, for query 2 and 3 it shows null. I could not hear and video does not show code

  • @ralucaifrim461
    @ralucaifrim461 3 ปีที่แล้ว

    I am stuck with a coursework question and wasted 4 hours to solve it..if anyone could help me i would be very grateful.. so i got a list with composer names, place of publication, year etc and the question asks to

  • @MrPennywise1540
    @MrPennywise1540 2 ปีที่แล้ว

    You have to divide your class in parts, with it's own introduction. Just to be more organized and understandable. Even thou, good video.

  • @dhanushsivajaya1356
    @dhanushsivajaya1356 3 ปีที่แล้ว

    Thankyou sir

  • @sandeepsinghnegi9220
    @sandeepsinghnegi9220 4 ปีที่แล้ว

    Thanks!!!

  • @dumpling3309
    @dumpling3309 ปีที่แล้ว

    I wanted to make a comment section for a ratings website.

  • @carloseduardogomezlozano491
    @carloseduardogomezlozano491 ปีที่แล้ว

    elif user_input == '5':
    connection.close()
    print('Tanks for use this system')
    break

  • @hellobytes1348
    @hellobytes1348 2 ปีที่แล้ว

    Code?

  • @SA-oj3bo
    @SA-oj3bo 3 ปีที่แล้ว +1

    You talk and type very quick, hard to follow you sometimes, and then you even paste a lot of code .. at the end you said not to worry because the code would be available, but where to find the code?

  • @riyabhati7416
    @riyabhati7416 4 ปีที่แล้ว

    hi need you urgent help

  • @ogunkayodeoluwaseun9348
    @ogunkayodeoluwaseun9348 3 ปีที่แล้ว

    Tbh he sounds like the male version of sypha from CastleVania

  • @riyabhati7416
    @riyabhati7416 4 ปีที่แล้ว +1

    need internship

  • @danielsiddiqui5903
    @danielsiddiqui5903 9 หลายเดือนก่อน

    Terrible why where you speeing through it like someone put you in fast mode

  • @ronelframos
    @ronelframos 2 ปีที่แล้ว

    I'm getting a "TypeError: "NoneType" object is not iterable", how can I fix this?