SQL Tutorial - 12: Inserting Data Into Tables

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

КОМЕНТАРІ • 119

  • @Zer-py2dk
    @Zer-py2dk 2 роки тому +21

    After i heard his voice, i knew my search is finally over

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

    I've searching youtube vid since having trouble with SQL... and could not find proposed solution for creating table and populate them,...
    but i assure this is the one of best vid ever! helped me a lot
    Great teacher!!

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

    "what the hell just happened" .. story of my life LOL
    Thanks so much. Very helpful!!

  • @Terawaycomm
    @Terawaycomm 8 місяців тому +1

    This tutorial is very helpful to me it really brings success to my coding journey thank

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

    Thank You for your video, I am taking SQL Database Class right now!

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

    Happy b'day man!!! lmaoo what a coincidence

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

    thanks i got the job even though i was from mech background
    love u bro

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

    Thank you so much .....
    your video today is also helpfull.

  • @santosh4471
    @santosh4471 8 років тому +16

    Thanks man! You're a great teacher

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

    Thnx for this wonderful video man , it was really helpful... 💜

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

    Thanks sir tomorrow is my practical

  • @yasirjune69
    @yasirjune69 5 років тому +3

    Thank you so much...it was really informative and convenient video.

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

    Thanks buddy,your videos helping me alot..

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

    Thankyou so much Sir sql commands smjh ni aa ri thi ab 5 me se ek aa gyi😂😂

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

    This video is very good

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

    Can we instert more than 1 person information in the same table by using the format ??

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

    Waaala.this was apiece of cake for me.Easy to understand for beginners

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

    Thanks man, this video helped a lot!

  • @srinivasaraoyp3640
    @srinivasaraoyp3640 5 років тому +2

    Very interesting tutorials. Thank you.

  • @ashokmarepally3134
    @ashokmarepally3134 4 роки тому +3

    Sir, can u solve this problem
    ?
    PREMISE: An SQL table has 4 columns: product ,region ,province, price. The region column can be either National or provincial .If region is provincial then province is filled(e.g.Ontario),otherwise it's blank. Each product has one national price, but may have zero or one provincial price. If a product has no provincial price, the national price is used. For example, "kale" may have a provincial price of $5.99 in Ontario and a national price of $4.50, with no other prices. If a user wanted to find the price of kale in Quebec they would get $4.50.
    CHALLENGE: Create a method, with a name and signature, that finds the price of a particular product in a particular province. Add the logic in pseudo-code to the body of the method. Be sure to include input parameters, a return statement, and any validation or exception handling that you deem necessary. You can represent the data as an array of objects.

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

    Thank you a lot sir .Bless your soul 😊

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

    What mySQL statement can we use to insert a selected row in a JFrametable into a mySQL database table?

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

    Thanks for the information...but I have a one query suppose I have to delete data from serial no.of table not from I'd ,name etc.then what command should be used ?

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

    Excellent tutorial.
    Liked it and subscribe to your channel.

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

    which version are u using, looks so easy on that

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

    Thank you, you are amazing..!!!!!!!!!!

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

    Sir jaise MySQL ke under insert into main sab daal diya mujhe show bhi kar raha hai but phir MySQL band kiya uske baad open toh same page khul gya so last main kiya tha par main uske aage aur entry daal raha hoon toh kyu error show ho raha hai sir please help me main aapko send bhi kar sakta hoon image jo main kiya hai

  • @f.a5148
    @f.a5148 Рік тому

    Great tutorial thanks a lot man.

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

    very informative video bro

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

    Thanks sir for providing this !!!

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

    3:52 why "name" is appearing in blue and rest of the column names are normal?

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

    what scripts will i use for inserting in many tables ? is that possible ?

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

    Happy Birthday 🎉

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

    Hello I just added new column in my table and showing null .how can I insert
    values to my new added column

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

    I am not able to insert values in the columns.
    It says column "id" of relation "employee" does not exist. Can you help me with it?

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

    Great explanation comparing to others

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

    the bad tutorials are really good XD

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

    i have a database class and the professor i have online sucks and dont teach anything now videos or anything.. is it possible to write the script on word and then copy and paste it into the sql

  • @mahakjain4380
    @mahakjain4380 10 років тому

    hello.. suppose there are 10 columns into table and we insert values only into 8 fields thn error will generate.?
    insert into employee (1, 2 , 33, 33 );
    this is done and there are 10 colmns in table employee thn error vl come or nt

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

    Thanks a lot for the tutorial.
    how can i insert data into a particular column ....if there was a column called experience at that time how to insert the data??

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

    Awesome tutorial !!

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

    Sir, thanks for the tutorial! However, I hope the values u typed aren't the real one's...(privacy problems😂)

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

    We have the same birthday bruh😂😂 ✨✨

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

    I have two tables I want to insert values in second
    Table with the help of first table so how can i. Please tell me sir

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

    in which platform u use this sql

  • @VishalSinghRajput
    @VishalSinghRajput 10 років тому +4

    Hey Madhur tomorrow ur having ur Birthday ;)

  • @samuelherlander6903
    @samuelherlander6903 8 років тому +2

    HAPPY BDAY ! :D

  • @surajahlawat1688
    @surajahlawat1688 8 років тому

    Can you please tell me why the "name" column is blue but other columns like id , dob are not blue in 12 tutorial?????

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

    Columns not allowed here error are come
    how to solve problem?

  • @Gaming444-h9p
    @Gaming444-h9p Рік тому

    Happy bday

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

    y are u using semi-colon for date-time datatype .may i know sir?

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

    In our computer what do u need to download

  • @nargeesansari6337
    @nargeesansari6337 6 років тому +2

    thank u sooo much sir

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

    really helpful 👌

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

    Which s/w u used

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

    Shouldn't we mention the name within double quote???

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

    Happy birthday Madhur

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

    Which app do you use??

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

    SQL> create table emp ;
    create table emp
    *
    ERROR at line 1:
    ORA-00906: missing left parenthesis
    SQL> create table emp (eno number(7),ename varchar(40),sal number(30)) ;
    Table created.
    SQL> select * from emp;
    no rows selected
    SQL> insert into emp values(1;'amma','10000');
    insert into emp values(1;'amma','10000')
    *
    ERROR at line 1:
    ORA-00911: invalid character
    SQL> insert into emp values(1;'amma',10000);
    insert into emp values(1;'amma',10000)
    *
    ERROR at line 1:
    ORA-00911: invalid character
    SQL> insert into emp values(1,'amma',10000);
    1 row created.
    SQL> insert into emp values(2,'nanna',20000);
    1 row created.
    SQL> insert into emp values(3,'anna',30000);
    1 row created.
    SQL> insert into emp values(4,'akka',40000);
    1 row created.
    SQL> insert into emp values(5,' middle akka',50000);
    1 row created.
    SQL> insert into emp values(6,' chinna akka',60000);
    1 row created.
    SQL> insert into emp values(7,' my self vikky',70000);
    1 row created.
    SQL> select * from emp;
    ENO ENAME SAL
    ---------- ---------------------------------------- ----------
    1 amma 10000
    2 nanna 20000
    3 anna 30000
    4 akka 40000
    5 middle akka 50000
    6 chinna akka 60000
    7 my self vikky 70000
    7 rows selected.
    SQL> update emp values sal='1000000' where eno=1;
    update emp values sal='1000000' where eno=1
    *
    ERROR at line 1:
    ORA-00971: missing SET keyword
    SQL> create table emp ;
    create table emp
    *
    ERROR at line 1:
    ORA-00906: missing left parenthesis
    SQL> create table emp (eno number(7),ename varchar(40),sal number(30)) ;
    Table created.
    SQL> select * from emp;
    no rows selected
    SQL> insert into emp values(1;'amma','10000');
    insert into emp values(1;'amma','10000')
    *
    ERROR at line 1:
    ORA-00911: invalid character
    SQL> insert into emp values(1;'amma',10000);
    insert into emp values(1;'amma',10000)
    *
    ERROR at line 1:
    ORA-00911: invalid character
    SQL> insert into emp values(1,'amma',10000);
    1 row created.
    SQL> insert into emp values(2,'nanna',20000);
    1 row created.
    SQL> insert into emp values(3,'anna',30000);
    1 row created.
    SQL> insert into emp values(4,'akka',40000);
    1 row created.
    SQL> insert into emp values(5,' middle akka',50000);
    1 row created.
    SQL> insert into emp values(6,' chinna akka',60000);
    1 row created.
    SQL> insert into emp values(7,' my self vikky',70000);
    1 row created.
    SQL> select * from emp;
    ENO ENAME SAL
    ---------- ---------------------------------------- ----------
    1 amma 10000
    2 nanna 20000
    3 anna 30000
    4 akka 40000
    5 middle akka 50000
    6 chinna akka 60000
    7 my self vikky 70000
    7 rows selected.
    SQL> update emp values sal='1000000' where eno=1;
    update emp values sal='1000000' where eno=1
    *
    ERROR at line 1:
    ORA-00971: missing SET keyword

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

    Anyone know how to insert Array into database ?? Something like maybe
    INSERT INTO TableName (column 1,column2) VALUES
    ('Arrayone','Arraytwo')
    To fill the rows

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

    please help me to download the version of sql database you are using please

  • @ManishaKashyap-ub7bv
    @ManishaKashyap-ub7bv 5 місяців тому

    Hello sir result grid not shown
    ..what can i do

  • @mrmendabest
    @mrmendabest 9 років тому +1

    happy birthday in 3 days :)

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

    Where is the tutorial series sir from 1 to end

  • @nand99999
    @nand99999 9 років тому +1

    Happy Birthday

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

    Thank you!

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

    tq so much sir

  • @Crazy_famdam.1903
    @Crazy_famdam.1903 3 роки тому +1

    Why you named your Chanel the bad tutorial🤔

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

    Thanks a lot bro

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

    advance and sequencial sql tutorial

  • @McGavel1
    @McGavel1 10 років тому

    Awesome, thanks!

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

    Is this MySQL?

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

    Tq sir ❤

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

    what data type is to be used is email id also contain numbers with characters..

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

    Thanks man..

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

    i am facing an issue there is no error but data is not inserting.. that only happens
    if i use id as autoincriment. how can i fix this

  • @Top5Category
    @Top5Category 7 років тому +2

    How can we insert multiple values in table??

    • @chaitanyareddy9391
      @chaitanyareddy9391 7 років тому +2

      we should use insert query as many times we want to insert data

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

    thanks my dear

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

    Thank you.

  • @sabasaddique4.4
    @sabasaddique4.4 3 роки тому

    Table create hogaya ha lakin data insert nii horaha

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

    If DESC doesn't work, then use sp_help

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

    thank u so muchhh

  • @wafaalz515
    @wafaalz515 8 років тому +65

    What the hell just happened 😂😂😂😂

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

      🤣🤣🤣

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

      @@producedbyshook ager aese har bar likhenge to ho gya kaam

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

      @@prakhar9886 kya hogya be kyu chichiya rhe ho

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

      Lmao I laughed at that when he said it and noticed your comment at the top!!! I subscribed

    • @newbie.raijin2605
      @newbie.raijin2605 9 місяців тому

      😂 I was about to comment that

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

    This is worst way of using INSERT statement in SQL
    Better way is as follow
    Insert into tablename set col1=val1, col2=val2, col3=val3;
    This insert is like update statement and it works 100% fine

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

    nice explan

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

    thank you

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

    can u make more videos plsezz

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

    brother how to give phone number details into table plz tell me how to give phone number

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

    Tq bro

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

      This very helpful for me tq u

  • @jitendragupta-bm2fe
    @jitendragupta-bm2fe 7 років тому

    Hi, How can I download MySQL Workbench?

  • @mohamedsalah8781
    @mohamedsalah8781 10 років тому

    yes i like it

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

    This accent is so fucking funny hauhauhhau

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

    Amazing treaning

  • @__-to3hq
    @__-to3hq 6 років тому

    tanks

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

    2024??

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

    Sir how can we insert multiple records by typing values of all fields, like
    Name Class Mob.No
    Ram 12th 999999
    Shyam 10th 100000

    • @nicholasbaker3675
      @nicholasbaker3675 7 років тому +2

      exactly like you just did but with proper syntax:
      insert into table_name (name, class, mob.no)
      values('ram', '12th', 999999)
      ,('shayam', '10th', 100000);

  • @tariqashraf7575
    @tariqashraf7575 5 років тому +4

    how i can name it as "the bad tutorials" ? LOL

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

    You have not single sign of teaching 😅

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

    which software are you using???

  • @Gaming444-h9p
    @Gaming444-h9p Рік тому

    Happy bday