Python MySQL Tutorial - Selecting Data & Altering Tables

Поделиться
HTML-код
  • Опубликовано: 21 июл 2024
  • This python mysql tutorial will cover how to select data using constrained SQL queries. As well as how to alter tables by adding/removing and renaming columns.
    Playlist: • Python MySQL Tutorial ...
    ◾◾◾◾◾
    💻 Enroll in The Fundamentals of Programming w/ Python
    tech-with-tim.teachable.com/p...
    📸 Instagram: / tech_with_tim
    🌎 Website techwithtim.net
    📱 Twitter: / techwithtimm
    ⭐ Discord: / discord
    📝 LinkedIn: / tim-rusci. .
    📂 GitHub: github.com/techwithtim
    🔊 Podcast: anchor.fm/tech-with-tim
    💵 One-Time Donations: www.paypal.com/donate/?token=...
    💰 Patreon: / techwithtim
    ◾◾◾◾◾◾
    ⚡ Please leave a LIKE and SUBSCRIBE for more content! ⚡
    Tags:
    - Tech With Tim
    - Python Tutorials
    - Python MySQL
    - Alter Table Python MYSQL
    - MYSQL Python Tutorial
    #Python #MySQL #SQL

Комментарии • 56

  • @kev635
    @kev635 4 года назад +20

    Thank you sooooooooo much for uploading these. These are super informative and easy to digest. You're great at explaining what you're doing. Keep up the good work!

  • @hemanta212
    @hemanta212 4 года назад +6

    Your previous video alarmed me that I still didnt know and needed to learn SQL but it was so short that i could not wait and learned it all. LOL

  • @lplatz
    @lplatz 3 года назад +1

    This series thus far is nailing it.. You're style and speed is excellent. I look forward to my continued progress through your SQL videos... and then beyond 👍

  • @basetroll1627
    @basetroll1627 3 года назад +1

    Very good tutorial. Very good explanation with clear examples. I was able to switch from sqlite to mysql thanks to your videos. So thank you a ton!

  • @kikecastor
    @kikecastor 4 года назад +10

    Eres genial, contigo aprendo Python, SQL e inglés al mismo tiempo

    • @vieiraork
      @vieiraork 3 года назад +3

      Its so simple to learn with him

  • @zacnoh3
    @zacnoh3 4 года назад +1

    Love your work man, thanks and keep it up! All the best to you. Would also love a nosql for python if you have the time.

  • @lifewiththelatchem-smiths5154
    @lifewiththelatchem-smiths5154 9 месяцев назад

    I love this and found it very easy to follow - you have a great teaching style. Thanks!

  • @johnnytoobad7785
    @johnnytoobad7785 Год назад

    Great intro for understanding the methods required to use MySql in Python.

  • @techiemum2489
    @techiemum2489 4 года назад +1

    I’ve been working on connecting a MySQL database to my django project today ready for a video being uploaded in a couple of weeks. I’m building an e-commerce store with Django - harder than I thought it would be!

  • @gianniprocida3332
    @gianniprocida3332 2 года назад

    Thank you, amazing content!

  • @michealhall7776
    @michealhall7776 4 года назад

    Tim can you do a view of setting up a cloud database that could be used in production and a simple flask app on google app engine that sends data to the database with a post request. Cloud databases are confusing

  • @lasc1991
    @lasc1991 4 года назад

    Hi Tim, u r great !!!! Congrats....

  • @soldadopreciso
    @soldadopreciso 3 года назад

    Thanks pal, Have you any tutorial about any pattern to provide abstract interface with the databases? We have heard about DAO Pattern , it is used in java language. What pattern we can use today? Community thanks in advance.

  • @SVarunNarayan
    @SVarunNarayan Год назад

    You are an outstanding teacher

  • @emrebatuatakan6004
    @emrebatuatakan6004 4 года назад

    I have a question Tim. If I add my data to table using a function, should I use "NOT NULL"?

  • @fernandohood5542
    @fernandohood5542 3 года назад

    How do you handle the scenario when the string for the query does not fit a line?

  • @randomuser31
    @randomuser31 4 года назад

    Tim how to add default value for each column in the table

  • @sairamsubramaniam8316
    @sairamsubramaniam8316 4 года назад

    Bruh you are awesome

  • @arielmaritano6470
    @arielmaritano6470 4 года назад

    Hi Tim! Thanks for this video.
    I tried what you did in 10:10, changing the length of VARCHAR down to 2 in a column after I had created some names, but instead of getting that error, I just got the names cut to their 2 first characters.
    Any idea why this should happen?

    • @firstname8078
      @firstname8078 2 года назад

      Varchar sets the max length of the variable. So you are telling it can only store 2 characters and it's storing 2 characters.

  • @mohammedkastali7096
    @mohammedkastali7096 Год назад

    how can i add values to the added column food thanks

  • @comethunter5306
    @comethunter5306 4 года назад

    Hey Tim, please can you make a video on how to get pygame working with visual studio. It would really help me out, thanks

  • @highspy8539
    @highspy8539 4 года назад

    Is it possible to search for a word like:
    titleSearch = input("search for title..")
    mCursor.execute("SELECT title FROM Accounts WHERE title = titleSearch")
    ?

  • @xcat7050
    @xcat7050 4 года назад +4

    Can you pls activate the download of your 12 Code Stream create a Tower defense Game?I want to watch it during a flight.

  • @nuvii0746
    @nuvii0746 4 года назад +2

    What is gender 'Other' ?

  • @bisu8789
    @bisu8789 2 года назад

    How can i print columns from two different tables ? I know it should be done with a join but it's difficult for me to see it on Python

  • @sainco3036
    @sainco3036 4 года назад +1

    thanks.

  • @DeepeshSingh16
    @DeepeshSingh16 4 года назад

    Can I have a pause within a loop suppost I have a enr entire entire data in one go and I want to slowly the name one by one with the pause of 1 second

  • @name12321
    @name12321 4 года назад +1

    Hi, great video.
    Here is a question: how can I create a python input that the answer gets stored in a table in MySQL?
    Can you recommend me a video of yours or where I can find the answer?
    Thanks!

    • @sergiufaragau5945
      @sergiufaragau5945 4 года назад +2

      name = input("Enter the name: ")
      age = int(input("Enter the age: "))
      mycursor.execute("INSERT INTO Person (name, age) VALUES (%s,%s)", (f"{name}",f"{age}"))
      db.commit()
      this is a way you can store data in the variables and use the f string format to enter the data, remember to use it for each variable in part as in my example, else it won't work.

    • @name12321
      @name12321 4 года назад +1

      @@sergiufaragau5945 thank you, that was useful.

    • @sergiufaragau5945
      @sergiufaragau5945 4 года назад

      Name Glad to help, I just started looking through mysql module myself but I know python quite well ;)

    • @mohannadkhaledomar3438
      @mohannadkhaledomar3438 3 года назад

      Sergiu Faragau
      Hi, after doing this sql. Will it be saved? So if I close the code. Can I open the code and do select query or I should create it again?

  • @Kig_Ama
    @Kig_Ama 3 года назад

    It's weird, if I run my python code wit PyCharm it works perfectly fine, but if I use sublime text it returns following error: mysql.connector.errors.NotSupportedError: Authentication plugin 'caching_sha2_password' is not supported

  • @anuragdaksh8569
    @anuragdaksh8569 3 года назад

    not a single dislike , GR8

  • @wehba
    @wehba 7 месяцев назад

    So is this structured as a doubly linked list?

  • @KalebNaim000
    @KalebNaim000 3 года назад

    why do some queries require db.commit() and others don't?

    • @gabrielrendelli
      @gabrielrendelli 3 года назад

      If I am not wrong, It's because you use COMMIT only when you have an alteration in your database.

  • @ahmedk.n8126
    @ahmedk.n8126 3 года назад

    Sqlite is a bit similar for those who don't understand this clearly learn sqlite first it is so easy and every thing is gonna be clear as you will have the basic knowlenge

  • @5ithofnov159
    @5ithofnov159 4 года назад

    you should collaborate with Corey Shafer, you and he are probably the only two educators that I can understand

  • @justinalia5445
    @justinalia5445 4 года назад

    How can I download pygame for windows 7 please ?

  • @krsingh.shubham
    @krsingh.shubham 4 года назад

    Man , where is the next video ?

  • @abhishektripathi127
    @abhishektripathi127 4 года назад +5

    1:49 no need to add NOT NULL in PRIMARY KEY attribute ( id ) as it is by default NOT NULL.

  • @AKA-077
    @AKA-077 2 года назад

    you lowkey look like daniel naroditsky

  • @retsu-h6460
    @retsu-h6460 Год назад

    3:52 he missed his chance to come up with a "joe mama" joke

  • @jayamankrah4328
    @jayamankrah4328 4 года назад +2

    Hey Tim, i wanna have a chat with u privately if that's possible.

  • @notyourbusiness2672
    @notyourbusiness2672 10 месяцев назад

    Yessss gender O. Yesss. 😂

  • @Alphabet_-_
    @Alphabet_-_ 4 года назад