MySQL PRIMARY KEY & FOREIGN KEY Tutorial in Hindi / Urdu

Поділитися
Вставка
  • Опубліковано 22 лис 2019
  • In this tutorial you will learn mysql primary key and foreign key tutorial in Hindi, Urdu.You can learn how to use mysql contraints primary key and foreign key on tables columns.You will also know what is difference between primary key and foreign key in hindi.
    PHP Tutorial in Hindi Playlist
    • ✅ PHP Tutorial in Hind...
    MySQL Tutorial in Hindi / Urdu Playlist
    • 🥇 MySQL Tutorial for B...
    Official Website
    www.yahoobaba.net/
    Follow us on Facebook
    / yahooobaba
    Follow us on Twitter
    / yahooobaba
    #mysql #webdevelopment #php

КОМЕНТАРІ • 307

  • @ThisAmit
    @ThisAmit 3 роки тому +24

    You are remarkably talented in how to teach step by step.
    Proper visualization.
    I'll say perfect.

  • @amitdandagavhal7730
    @amitdandagavhal7730 3 роки тому +14

    perfect explanation, im a non IT guy but understand it very easily ...worth to watch this series.

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

    One of the best YT channel to learn programming

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

    Easiest way to learn _primary-foreign_ key. Thanks sir👍

  • @santoshtmustudent3905
    @santoshtmustudent3905 3 роки тому +3

    I will never forget this explanation
    Your teaching skills are soooooooooooooooo goooooood sir
    Thank you 🙏

  • @codingbyyash1948
    @codingbyyash1948 3 роки тому +28

    Never seen such a excellent explanation.........

    • @YahooBaba
      @YahooBaba  3 роки тому +5

      Thanks for appreciating my work :)

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

      Yes u are absolutely Right !!

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

      I know it is quite randomly asking but do anyone know of a good website to watch new series online ?

    • @ROHIT-sk3ox
      @ROHIT-sk3ox Рік тому +1

      @@guscolt2057 alt Balaji

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

      Acchha samajh Gaya bhai ko bahot shi

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

    Thanks for the great videos as the content is very understandable, accurate and concise way
    quick to brash up the concepts

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

    brilliant teaching sir.....💕

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

    You came as blessing sir.... Thanku so much sir❤

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

    Great time I am having with this course to so much sir

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

    Bhut vadia treke nl clear kita sir g thanks 👍🙏

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

    Excellent way of teaching..

  • @allaboutit-4023
    @allaboutit-4023 2 роки тому

    Your explanation is osm... Tysm🥰

  • @joydeepbhattacharjee5305
    @joydeepbhattacharjee5305 3 роки тому +3

    lovely explanation...to the point video... respect ++

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

    perfect example sir....... thankyou sirr...

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

    The whole tutorial video playlist is the savior for me . Thank you so much for such detail explanation

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

      Glad it was helpful!

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

    I watched many videos, but was not clear, but you have explained it very well just like my ORACLE Teacher when i was in Collage, Thanks

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

      Glad it was helpful!

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

    Nice explanation by yahoo baba full return of time.
    In college teacher takes fees and waste more time of students.
    You are great yahoo baba❤❤

  • @yt.kiran12
    @yt.kiran12 2 роки тому +2

    no one can teach better than this.. 🧡

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

      Thanks for appreciating my work :)

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

    very good explanation 🎊🥰

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

    GREAT sir ji👏🏻👏🏻🙏🏻😁

  • @riyabhargava8544
    @riyabhargava8544 3 роки тому +5

    i am following your whole tutorial playlist for sql . it is really nice

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

    Very well explained mysql Primary Key and Foreign key

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

    There can be set of columns that can be primary key also 👍

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

    zaberdast sir mind blowing super bhot acha samjhaya hai ap nay

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

    Awesome sir 👍😎

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

    Bohot hi mahol padhate ho sir ji aap.. 1st time apki video dekhi.. n I m ur fan... Bohot easy Way se sikhate ho..

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

      Thanks for appreciating my work :)

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

    nice video thankyou

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

    Hello sir store procedure pr video laye aap bahut achchhe se padhate hai

  • @user-us4ex1pd8m
    @user-us4ex1pd8m Місяць тому

    yar aapki voice my god kitni mst h jaise delhi metro me bolte h

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

    Your pitch of voice is very pleasant to hear. Explained Perfectly for beginners.

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

      Thanks for appreciating my work :)

    • @MohdIrshad-ko6bd
      @MohdIrshad-ko6bd Рік тому

      Dono tables create krke img send kro kar do sir plzz glt ho raha hai

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

    sir you are such a greate techer
    itna aacha syd hi koi pada apaya

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

      Thanks for appreciating my work :)

  • @DeepakGupta-hj2dv
    @DeepakGupta-hj2dv 4 роки тому +1

    Sir jaldi upload kro...please make as soon as possible

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

    Thanks a lot

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

    Helpful ❤️

  • @sandeepkumar-zv6fw
    @sandeepkumar-zv6fw 3 роки тому

    Great brother nice job

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

      Thank you so much 😀

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

    THANKS SIR FOR THIS VIDEO IT REALLY WORK

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

    your teaching skill are best

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

    It's A very Good explanation for me ... ❣️ And i Can't stop my fingers to Subscribe You ❣️❣️❣️

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

      Thanks and welcome :)

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

    thank you for this useful videos

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

    Sir I am b.com final year student ... And now my computer professor is teaching us SQL but it's a old version by looking at your videos syntax are different... Please help me with old version sir.

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

    Excellent explanation sir

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

    thanks_Sir💜

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

    Sir g ERP SAFTWERE BNANE ME PHP KE SATH - SATH OR KON SA COURSE KI NEED HAI

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

    Very nice sir

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

    Thanks a lot sir😇😇😇🙂🙂🙂🙃🙃🙃🙃😊😊😊😊😋😋😋😋

  • @MaheshPatil-of1zy
    @MaheshPatil-of1zy Рік тому +1

    at 6:15 the name of column City in Student Table should be Cid which is primary key in City Table and foreign key in Student Table. Name must remain same should not changed.

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

    sir ajkl jo companies websites bna ri hai. all devices perfect hoti hai. but bootstrap se nahi hoti ya custom media quries se kro toh bhi kami reh jati hai toh pls yeh zroor bnaiye alag se video. your all videos are nice. thanx this hardwork for us.

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

      Yes sure main jald hi es topic par video banaunga.

  • @TheWorldCricketSports.
    @TheWorldCricketSports. 3 роки тому

    good job

  • @AMITKUMAR-pz2xh
    @AMITKUMAR-pz2xh Рік тому

    Excellent

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

    bhut achha bhut khoob

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

    thank you sir...

  • @user-lm5wb8vi1x
    @user-lm5wb8vi1x 2 місяці тому

    Finished watching

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

    Great

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

    if you Add Lecture Number in video title it will be more helpful and easy to search. thankyou

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

      I already placed Video Number in the Lower Left Corner of video thumbnail.

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

    Sir I am getting this error
    Error code:3780. Reference column 'city' and referenced column 'cid' in foreign key constraint ' personal_ibfk' incompatible.
    Please reply

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

    The insert statement conflicated with the foreign key the conflict occured in database table column

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

    Thanks for

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

    Thank you sir

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

    thanks for every single video❤️❤️❤️🧗‍♂️

  • @Rahul-tf6vx
    @Rahul-tf6vx 2 роки тому

    Make one more video on primary and foreign key

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

    Good

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

    Nice explain

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

    Please make a video on powerbi

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

    Please make a project using php mysql javascript & ajax.

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

      MySQL course ke bad project Shuru Hone wala PHP with MySQL

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

      @@YahooBaba OK

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

    MySQL optimization ka video bhi bna lijiye sir

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

    I think these people are more intelligent than me

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

    Dear sir please make a video that how to use xamp server after created a web site by html css javascrip .

  • @user-rb9py3ex7n
    @user-rb9py3ex7n Рік тому

    Make video on postgresql

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

    Iske baad ak normal ER diagram iske upr bana k relation samaja k video banna chahiye tha

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

    Sir personal table me insert row me last ka 1 liya he wo kiske base me liya he . Please reply.

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

    Can you please share the whole presentation file, it will be helpful for your students. Thank you!

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

      You can get it from our website : www.yahoobaba.net

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

      @@YahooBaba thank you sir ❤️

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

    hello sir , i have questions k foreign key to point krta he dosrey table k column ko jo k apne banaya CITYNAME k name se to CITY kese foreign key bana ? 2nd yeh k apne is tutorial main personal table k column city ki values to khud insert karwayen hain .. is ko khud pick nae hojana that city table se ?

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

      1) Dekho ek table ki PRIMARY KEY point karti hai doosre table ki FOREIGN KEY KO, tabhi dono table join hote hai.
      2) Dekho koi bhi value apne aap insert nahi hogi kisi table mein. Yha toh basically hum khud insert kar rahe hai leking jab MySQL ko kisi langauge ke sath use karenge jaise PHP toh wha se ek aisa system banayenge ki value khud insert ho jaye.

  • @sandeepkumar-zv6fw
    @sandeepkumar-zv6fw 3 роки тому

    Yii2 framework ke videos bnaoo bhai UA-cam uski videos hai hi nhi hindi me

  • @user-oe8jt7oc4b
    @user-oe8jt7oc4b 3 місяці тому +1

    SIR MA JAB TABLE KI SETTING PRE CLICK KRTA HO WASY HI MERA MYSQL OFF HO JATA HA

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

    sir your all videos are awesome ad you are doing great job, but in this video i felt it needed more explanation.

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

    Sir altering the table is complicated since the data type of my city column in personal is Varchar and then making it a foreign key requires to change it's data type later it has messed up my table.

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

    sir thankyou and!
    sir hum id ko primary na set kare tw bhi kaam chal sakta hana q.k iska koi khas kaam tw nhi hai ?

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

      Nahi bina Id ko primary set karne se kaam temporary hoga kyu ki duplicacy aa jayegi aur Kisi ek column ko primary key set karna zaroori hai agar aap baad mein joins bhi karna chahte ho

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

    12:34 raam kumar and sarita kumar are struggling actors

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

    Sir I'm getting this error :
    Error Code: 1064. You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '(id), FOREIGN KEY (city) REFERENCE City (cid) )' at line 8

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

      May be datatype of PRIMARY KEY and FOREIGN KEY is not same.

    • @nehasingh-uz5ou
      @nehasingh-uz5ou 2 роки тому

      Same error

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

    How to set two foreign key from two different references table?

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

    Sir, foreign key command kam nahi kar raha hai, kya karu.

  • @AshuKumar-kw8bi
    @AshuKumar-kw8bi 4 місяці тому +1

    bhai maine 2 table banaya hua hai dono me primary key dala hua hai ab mai dono ko alter wale se foreign key banana chahta hu .bhai help kr de yar ho hi nhi raha hai

    • @A_Good_Boy.
      @A_Good_Boy. 3 місяці тому +2

      mera bhee nahi hotha for some reason

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

    sir foreign key aur primay key ka naam same hona chahiye na parent table ki primary key hi to child table ki foreign key hogi par yahan to aapne primary key CID ko banaya hai aur foreign key city leliya please explain

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

    अध्यापकजी नमस्कार इस टेबल का पारिवारिक रिश्तो पर विडियो बनाकर बताये जिसमें पुत्र, पुत्री, माता, पिता,दादा, दादी, काका, काकी, बाबा, बडिया, भुवा, फुंफा, इसके अलावा नाना, नानी, मामा, मामी, मासा, मासी के साथ साथ गाँव का नाम, जाति का नाम, भी हो
    देखने का तरीका दायें से बांये 1आई डी नम्बर, 2 गांव का नाम, 3 जाति 4 नाम 5 सम्बन्ध (स्वयं, पत्नी या पति, पुत्र, पुत्री ) 6 नाना का नाम जो ओटोमेटिक बनेगा

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

    Sir python par video banyi plzz hindi ma

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

    Sir very nice lec please share pdf

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

    Writing same code but i got an error "cannot add or update a child row"
    Please help sir

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

    Student table main city column main cid ki value dynamically kesy save krwaty han

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

      Yes, i also want to know Yahoo Baba sir ????

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

      Woh hum nahi karate hai wo toh khud generate hoti hai agar aapne table banate time cid ko AUTO_INCREMENT set kiye hoga toh.

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

      @@YahooBaba ni sir main php ki baat kr raha hon. Us main aisa agar aik table main user ka data ho or second main koi comment ya post etc... to hum phir ye command kesy likhain gy k jo user waly data main id 4 ha us ny ye comment kia ha jo second table main save ha ...... to user waly id sy kesy pata chaly ga k kis user ny kon sa comment kia ha... main dating website py kam kr raha hon

  • @ricky007
    @ricky007 4 роки тому +1

    SIR yeh code run nahi ho raha hai sir usme error a raha hai

  • @dhruvrajsinhjadeja-vfxarti3085
    @dhruvrajsinhjadeja-vfxarti3085 4 роки тому +1

    1) sir yahi chees workbench ki jagah phpmyadmin pe banake dikhaona please usme dikat ho rahi hai
    2) sir workbench software me alter table command try kiya pr nahi ho raha hi

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

    Sir why you have taken city data type in personal table as INT ?
    FOREIGN KEY SHOULD HAVE SAME data type as primary key of another table?

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

      Because in another table "city" their is a column name "cid" whose data type is INT and that is also a PRIMARY KEY of "city" table.

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

    is this necessary to name of both column be same like u_name = b_rented_user => should it be u_name

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

    Can't understand why 33 people dislike this video 😳😕

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

    error 3780 _ foreign key column data type =references key column k data type, same hona chahiye

  • @akgamingff7791
    @akgamingff7791 9 місяців тому +4

    Nhi samajh aaya

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

    Hi sir , If Primary key= Unique + Not Null , then there is no need to give NOT NULL as a constraint in ID column ....right ? replay Sir

    • @YahooBaba
      @YahooBaba  4 роки тому +1

      Yes your thought is right but we can only make Primary key to any column if it is NOT NULL.

    • @AshishYadav-wc9ux
      @AshishYadav-wc9ux 2 роки тому

      @@YahooBaba ok

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

    sir data type same reta h dono ka shuru m varchar and int bata rahe ho and baad m int int bata race ho.

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

    sir yeh chez clear krdain taake tutorial agey barhey .. inner join bhi isi se related he to aur samajh nae aega

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

      Yes koi bhi join isi se realted hai.

  • @user-qy3vy7fi2f
    @user-qy3vy7fi2f 8 місяців тому

    1196 error showing whenever using rollback
    it said non-transactional tables can't be rolled back