MySQL 28 - ENUM

Поділитися
Вставка
  • Опубліковано 23 жов 2024

КОМЕНТАРІ • 28

  • @DvACtOid
    @DvACtOid Рік тому +1

    Until the last minutes where you show how to create table with enum, I realized why not using an lookup table other than hard coded it into a create table statement. Well done explantation.

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

    Thank you very much for the explanation. I searched for something about ENUM data type and I came here. I like your presentation. thanks a lot :)

  • @Oswee
    @Oswee 6 років тому +8

    In my experience with large systems i was forced to convert all ENUM to separate tables.

    • @soldadopreciso
      @soldadopreciso 6 років тому +1

      sure, why? shared with us your experience , please?

    • @Oswee
      @Oswee 6 років тому +10

      Well... i will try to imagine example... Lets say you have some Invoice status, New, Pending, Partly Paid, Paid... It would be normal to make those statuses as ENUM. But then... after some time, PO come and tell you - You know.. i want to allow Users set some color for every status. And at this point you should convert your ENUM to separate invoice_status table, where you can store color for every status. (Colors can be changeable per User).
      The only place where i mostly use ENUM is to describe db record_status.

    • @lapnghiepshopee
      @lapnghiepshopee 6 років тому

      @@Oswee thank man :)

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

    Awesonme! I just subscribed... Nice to have the old fashion always useful board and chalk

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

    Thanks for the easy, short, but comprehensive video 🔥

  • @gomezgamez2051
    @gomezgamez2051 5 років тому +1

    Ty i'm a mexican user, so you're too great and funny to explain, seriously this helps me a lot, greetings from Mexico!

    • @avenichi789
      @avenichi789 5 років тому

      Do you like russian names?

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

    Great video. Thanks for the help!

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

    Very cool Caleb, easy to understand, thank you!

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

      Much better than reading documentation

  • @VikramSingh-ke5cz
    @VikramSingh-ke5cz 5 років тому +1

    can you tell me how to apply alter command on enum datatypes in mysql, if i have to change something in it..

  • @sahilkamal6623
    @sahilkamal6623 6 років тому

    Can we called enum is constant values ?

  • @soldadopreciso
    @soldadopreciso 6 років тому

    thanks , greetings from Ecuador

  • @qbmate2.0
    @qbmate2.0 4 роки тому

    Nailed it!

  • @knitershift
    @knitershift 6 років тому

    thanks

  • @maxinnn1
    @maxinnn1 4 роки тому

    thank broo!!

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

    and it just started snowing HHAHAHAHAHAHAHAHAH

  • @Nikos1Volos
    @Nikos1Volos 7 років тому

    When i use ENUM do i check the NN(Not Null) box ?

    • @codebreakthrough
      @codebreakthrough  7 років тому +1

      +Nikos Pap you can, if you want to allow yourself or others to not give a value for that column. 😁

    • @Nikos1Volos
      @Nikos1Volos 7 років тому

      Ok mate. Thank you !

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

    JESUS! I just went and 'looked up ' the look up table video you made, WHO IS THIS PERSON, its like your ghost twin or something did Aliens Body Snatch the real Caleb Curry?

  • @andregomes2629
    @andregomes2629 6 років тому +1

    Portugal is here to

  • @QuandaleDingle223
    @QuandaleDingle223 5 років тому

    hoi joel