INSERT UPDATE, DELETE & ALTER Table in SQL With Example | SQL Tutorial in Hindi 4

Поделиться
HTML-код
  • Опубликовано: 9 июл 2024
  • SQL Full Course Playlist 👇
    • SQL Tutorial In Hindi
    Timestamps:
    00:00 Topics
    00:04 Insert Into Concept
    00:28 Insert Into Example
    01:38 Update Table Concept
    02:12 Update Table Example
    02:55 Delete Values Concept
    03:11 Delete Values Example
    03:41 Alter Table Concept
    04:37 Drop & Truncate Table Concept
    05:01 Drop & Truncate Table Example
    Like, Share, Subscribe :)
    ➖➖➖➖➖➖➖➖➖➖➖➖➖
    Queries used:
    👉 Customer Table
    🔖 Create table
    CREATE TABLE customer
    (
    CustID int PRIMARY KEY,
    CustName varchar(50) NOT NULL,
    Age int NOT NULL,
    City char(50),
    Salary numeric );
    🔖 Insert values in table
    INSERT INTO customer (CustID, CustName, Age, City, Salary)
    VALUES
    (1, 'sam', 26, 'Delhi', 9008),
    (2, 'Ram', 19, 'Bangalore', 11000),
    (3, 'Pam', 31, 'Mumbai', 6060),
    (4, 'Sam', 42, 'Pune', 10000);
    🔖 Update values in table
    UPDATE customer
    SET CustName = 'Xam' , Age = 32
    WHERE CustID = 4
    👉 Classroom Table
    CREATE TABLE classroom (
    rollno int8 PRIMARY KEY,
    name varchar(50) NOT NULL,
    house char(12) NOT NULL,
    grade char(1) );
    INSERT INTO classroom (rollno, name, house, grade)
    VALUES
    (1, 'Sam', 'Akash', 'B'),
    (2, 'Ram', 'Agni', 'A'),
    (3, 'Shyam', 'Jal', 'B'),
    (4, 'Sundar', 'Agni', 'A'),
    (5, 'Ram', 'Yayu', 'B');
    ➖➖➖➖➖➖➖➖➖➖➖➖➖
    Related Videos
    Introduction to SQL - What Is SQL + Database | SQL Tutorial In Hindi - 1
    • What Is SQL ? | Databa...
    Data Types, Primary-Foreign Keys & Constraints in SQL | SQL Tutorial In Hindi - 2
    • Data Types, Primary-Fo...
    Create Table In SQL & Create Database | SQL Tutorial In Hindi - 3
    • Create Table In SQL & ...
    ➖➖➖➖➖➖➖➖➖➖➖➖➖
    Connect on other Social Media handles:
    Instagram: / rishabhnmishra
    LinkedIn: / rishabhnmishra
    Twitter: / rishabhnmishra
    ➖➖➖➖➖➖➖➖➖➖➖➖➖
    If this is the first ever video you're watching allow me to introduce myself, Hey I'm Rishabh Mishra and currently working as Senior Data Analyst at Bangalore. On this channel I like to guide and help my juniors and data science aspirants regarding Data Science jobs and useful tips for college students.
    Have a great day buddy!

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

  • @RishabhMishraOfficial
    @RishabhMishraOfficial  Год назад +21

    Anyone facing issue in INSERT value query, below is updated query:
    👉Customer Table
    🔖Create table
    CREATE TABLE customer
    (
    CustID int PRIMARY KEY,
    CustName varchar(50) NOT NULL,
    Age int NOT NULL,
    City char(50),
    Salary numeric );
    🔖Insert values in table
    INSERT INTO customer (CustID, CustName, Age, City, Salary)
    VALUES
    (1, 'sam', 26, 'Delhi', 9008),
    (2, 'Ram', 19, 'Bangalore', 11000),
    (3, 'Pam', 31, 'Mumbai', 6060),
    (4, 'Sam', 42, 'Pune', 10000);
    🔖Update values in table
    UPDATE customer
    SET CustName = 'Xam' , Age = 32
    WHERE CustID = 4

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

      sir can you please pin SQL notes pdf, i would be grateful, if you do 😇

    • @arpan-Ghosh123
      @arpan-Ghosh123 Год назад

      Thank u sir...... Mai to udemy zada apka videos dhekta hu.... It's help me a lot.

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

      Mere se to program run hi nhi hora

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

      bhai, how to change existing tables column name . i'm not able to do that . please help bhai.

    • @user-kf5zq6rw4c
      @user-kf5zq6rw4c 10 месяцев назад

      Which values should be in " " and which are not ??

  • @soumyajeetmitra6958
    @soumyajeetmitra6958 6 месяцев назад

    bohot achhe tadhike ke samjh gaya. Thank You Bhaiya!

  • @priyabanerjee855
    @priyabanerjee855 Год назад +1

    great classssss thank u so much

  • @akshaymuktiramrodge3233
    @akshaymuktiramrodge3233 8 месяцев назад +9

    For alter method i noticed some changes may be due to new version .
    1. for creating new column :- ALTER TABLE customer ADD COLUMN "NewColumn" char;
    2.for changing data type:- -- ALTER TABLE customer ALTER COLUMN "NewColumn" TYPE numeric USING "NewColumn"::numeric;
    Please check it Rishabh.

  • @deepagangber
    @deepagangber 2 месяца назад

    Bahut badhiya sir thank you sir🙏🙏🙏

  • @hemantkodiya4305
    @hemantkodiya4305 9 месяцев назад +6

    The way you replied to 95% of all comments is really appreciable..❤️❤️.

  • @icyyy221
    @icyyy221 21 день назад

    So Great full for this free course seriously am learning, happy.

  • @sawaimalhi8439
    @sawaimalhi8439 Год назад +7

    In short time you covered many topics❤❤❤

  • @Sbk_Tech
    @Sbk_Tech 7 месяцев назад +2

    Great sir and teach easily i watch your all vedios and learning mush more from You ..God bless u

  • @subhenduprosadnath5542
    @subhenduprosadnath5542 Год назад +1

    Thanks..!!

  • @umaimamujahid8551
    @umaimamujahid8551 2 месяца назад +2

    Great wounderful ❤❤💗💓💓💓😎

  • @chavansarala
    @chavansarala 6 месяцев назад +2

    very nice teaching sir,and very helpful information in easy language .thank you so much😊

  • @user-bs1gb2gh3f
    @user-bs1gb2gh3f Год назад +1

    Nice Rishav such a good technic, everybody should be follow this

  • @rajabhishek9256
    @rajabhishek9256 Год назад +1

    You are doing a great job. Please upload all the videos ASAP.
    Thanks

    • @RishabhMishraOfficial
      @RishabhMishraOfficial  Год назад +1

      Hi Raj, I'm glad you liked this course. Now i will try to post the video on daily basis at around 10AM

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

      @@RishabhMishraOfficial Thanks Rishabh, Your efforts are highly appreciated! Keep up the good work 👍

  • @sayoksanyal809
    @sayoksanyal809 11 месяцев назад +2

    Rishabh I am facing issues while using ALTER COLUMN could you please help me out for the correct syntax

  • @Shilpi_Bhadoriya
    @Shilpi_Bhadoriya 10 месяцев назад +1

    Worthfull video
    Thanks

  • @Zerocoment-zh6bq
    @Zerocoment-zh6bq Месяц назад +1

    Thanks

  • @user-ii5sq4ki2d
    @user-ii5sq4ki2d 7 месяцев назад +1

    Very Nice sir I have all the questions solved 😊😊
    Thank you so much ❤️🥰

  • @rithikahuja8203
    @rithikahuja8203 Год назад +1

    Too too much great brother ❤❤

  • @orscarram
    @orscarram Год назад +3

    great bhaiya

  • @002_aashishrawat8
    @002_aashishrawat8 11 месяцев назад +1

    Sir ek question hai , is column field name is case sensitive while writing query ya as it is same style mai column field likhna hoga

  • @arhaam_val
    @arhaam_val 15 дней назад +2

    Thanks for this tutorial !

  • @vikramverma2152
    @vikramverma2152 Год назад +1

    Sir my all confusion clear in one vedio ❤❤

  • @RajanKumar-kv8cn
    @RajanKumar-kv8cn Месяц назад

    Nice Video

  • @sunillohar2239
    @sunillohar2239 10 месяцев назад +1

    Very helpful content

  • @nidhinnidhin8764
    @nidhinnidhin8764 Год назад +7

    Thanks Sir.
    while trying to insert values,I was getting syntax error.
    So i had to add double quetes and modfy the codes as shown below.
    INSERT INTO customer1
    ("Custid", "Name", "Age", "City", "Salary")
    VALUES
    (1, 'Sam', 26, 'Delhi', 9000),
    (2, 'Vim', 46, 'keral', 12000),
    (3, 'Dam', 21, 'banglor', 8000),
    (4, 'Fam', 24, 'katak', 70004);

    • @swapnilzoad3837
      @swapnilzoad3837 Год назад +1

      INSERT INTO public.customer(
      "ID", "Name", "Age", city, "Salary")
      VALUES (1, 'Sam', 25, 'Nagpur', 25000);

    • @nickulapania7485
      @nickulapania7485 3 месяца назад

      Thanks buddy it helped me as well

  • @koshtiuchit2444
    @koshtiuchit2444 4 месяца назад

    Hello, Thanks for your easy explanations. I have a few doubts:
    1. Can I use Truncate to delete the values in a particular column? Or is there any particular command for that?
    2. How to rearrange columns?
    3. Also, is it suggested to write the drop command to delete the table - we can also right click and delete the table from the Tables section. Please suggest

  • @aligamingyt9351
    @aligamingyt9351 Год назад +1

    I am facing issue with 1064 error code while using the syntax and i am unable to execute my intsert into command please help me

  • @harshkannaujia9914
    @harshkannaujia9914 6 месяцев назад +1

    nice and help full

  • @swapnilpatel9831
    @swapnilpatel9831 9 месяцев назад

    pls make videos on database also good explanation

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

    After using the Alter/drop column, I am unable to add values in the new column which is created using the Alter/ add column. I put 1,1 single values using an update command in the table, how to do it in one go?

  • @Mathmarvelstudio
    @Mathmarvelstudio 3 месяца назад +1

    Thank you so much ❤️❤️

  • @rtechsupport2230
    @rtechsupport2230 Год назад +1

    It's very helpful

  • @user-ud9je7uj4c
    @user-ud9je7uj4c 11 месяцев назад +6

    Alter table customer
    ALTER COLUMN "CustName" varchar;
    I have written this in query. I was trying to alter the column datatype from char to varchar but its not working. Can you help me in that. Although it's not required but i was experimenting with ALTER column. It's showing..
    ERROR: syntax error at or near "table"
    LINE 2: Alter table customer
    ^
    SQL state: 42601
    Character: 3

    • @rutujasarnobat8025
      @rutujasarnobat8025 26 дней назад

      the same happened in my case, did you get any solution for that ?

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

    lots of helpful videos

  • @helpingwallahngo5798
    @helpingwallahngo5798 11 месяцев назад +1

    thanks brother :)

  • @tusharkhodankar3598
    @tusharkhodankar3598 Месяц назад

    You are God!🙏

  • @sukkaka9920
    @sukkaka9920 3 месяца назад +2

    hi bro the way ur really very nice and ur patience really appreciating ur dedication. bro which ur main topics it is useful to data analytics role. can you tel me it will to useful to my course thank you

  • @user-rl3gs8jj8o
    @user-rl3gs8jj8o 9 месяцев назад +1

    Yeah I have doubt about alter table modify I can't able to change the data type in existing table

  • @mohammadsadique1131
    @mohammadsadique1131 9 месяцев назад +1

    @RishabhMishraOfficial DATA TYPE alter me syntax error aarha hai : ALTER TABLE customer ALTER COLUMN city VARCHAR(50) {from char(50) to varchar(50)}

  • @Aitisamahmed
    @Aitisamahmed 3 месяца назад +1

    But help hue ..love you bro. But easy ha data base.

  • @PrashantYadav-sj3tn
    @PrashantYadav-sj3tn Год назад +1

    Hi i need full SQL course, your teaching skill is Awesome

    • @RishabhMishraOfficial
      @RishabhMishraOfficial  Год назад +2

      It's already uploaded on this channel

    • @swarnimamishra7007
      @swarnimamishra7007 5 месяцев назад

      @@RishabhMishraOfficial Can you please make a complete data science course? You are a great teacher and i am sure that many people are going to buy your course if you build one.

    • @ArmorofGod24by7
      @ArmorofGod24by7 4 месяца назад

      Uske baad tum kahogey ki ek makan kese kharidna hai uska bhi pura course upload kardo😂

  • @nikitakumari8378
    @nikitakumari8378 3 месяца назад

    No doubts ap ache pdte ho but apko pura details mai playlist bna chahiye SQL deeply

  • @sadafmapari5498
    @sadafmapari5498 2 месяца назад

    i understand sir

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

    Sir try kro thoda or Details mai Btao kuch steps aap Explain hi nai Krte , please

  • @DANNY85007
    @DANNY85007 10 месяцев назад +1

    Very easy way of your teaching Rishabh ji it would be more better if had included alter too....but thank you so much

  • @divyasohni1267
    @divyasohni1267 9 месяцев назад

    When you use alter table for add column than you define the data type also in this slide that is not written so that you may got error

  • @samujjalchowdhury5629
    @samujjalchowdhury5629 Год назад +2

    While updating the value, updated value (SET CustName = 'Xam' , Age = 32
    WHERE CustID = 4) is appearing at the end of the table, instead of appearing after cusID 3.
    What to do?

  • @shadabanwar7298
    @shadabanwar7298 Год назад +2

    Hello sir
    Sir I have a doubt sir when I punch insert into after filling all query
    I got notification that column"id" of relation customer does not exist sir what does it mean

  • @moneygreedyt
    @moneygreedyt 3 месяца назад

    sir i am getting problem in changing datatype . i have follow full syntax from video and from w3school . please help me

  • @abhishekpatelspace
    @abhishekpatelspace Год назад +1

    helpful

  • @RohitRajChoudhary
    @RohitRajChoudhary Месяц назад

    I am trying to add data to table but it is showing syntax error but I did exactly as you instructed. Can you help ?

  • @dhruvshah3394
    @dhruvshah3394 Год назад +2

    What is the difference between DROP, DELETE and TRUNCATE if they can be used for same operations?

    • @nikhilvishwakarma6223
      @nikhilvishwakarma6223 Год назад +8

      Drop table is used to delete the entire table from data base.
      Delete is used to delete the existing record from tables.
      Truncate is used to delete the data present in the table but not delete the whole table.
      Thanks me later ....🤗

  • @jayeshtekale
    @jayeshtekale 8 месяцев назад

    Hi Rishabh please let me know when to use single or double quotes in sql while writing syntax because when I run the query without using quotes it gives error ' badak jata hai mere pay wo 😂 ' but use execute your query without using quotes how ?

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

    Hi
    If I need to delete specifically first 10 records or 100 records
    Could u plz tell the process

  • @AllInOne-cm3hz
    @AllInOne-cm3hz Год назад

    Hi i have seen a lot of your videos today .. Can u make a vid from where we can do free and paid data analyst courses ... And can u please share your first salary as a data analyst for our motivation . Subscribed your channel and will be waiting for your vid. 🥰

  • @user-vf5jn7kc8v
    @user-vf5jn7kc8v 6 месяцев назад

    hello sir i was working in modify column syntax is creating an error

  • @shivam_kumar1994
    @shivam_kumar1994 4 месяца назад

    maine ek database bnaya, uss mein data insert kiya data mein 5 column hai with 10 rows, agr maine 5th row ke data mein city update kar rha hoon toh wo row apni position kyun change kr rhin hai? But agr main last rows main update kr rha hoon to wo same position pe hai. please help kre

  • @akshaymuktiramrodge3233
    @akshaymuktiramrodge3233 8 месяцев назад

    Hi Rishabh, while writing the query i always have to mention the column name within quotation marks..why so???

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

    I have Questions i have created new colums name as City in Table, Now I put that City Column Next name how will I do it.

  • @priyanshudas4080
    @priyanshudas4080 3 месяца назад

    PostgreSQL folds all names of tables to lower case unless they're "double quoted". How is your query running ?

  • @user-oi5pt1em6k
    @user-oi5pt1em6k Месяц назад

    Can we use 'in' operator in update statement instead of where ?

  • @ShambhaviShree-b4h
    @ShambhaviShree-b4h 4 дня назад

    When I write a query for "INSERT INTO", in query 2 I wrote same name as mentioned in a column in a table, instead of that I am not able to run a query it is showing error (id doesn't exist in customer table name). 1:15

  • @pallablahiri1549
    @pallablahiri1549 2 месяца назад +1

    Please explain how to do alter table, drop table because it is my first time learning SQL so please help me sir

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

    What is the different between DELETE FROM table_name and TRUNCATE TABLE table_name?

  • @rutujasarnobat8025
    @rutujasarnobat8025 26 дней назад

    Sir, I was trying to change the datatype of the column using ALTER TABLE ALTER COLUMN command, but its showing me the error, can you please elaborate on this?

  • @ShubhamPatil..
    @ShubhamPatil.. Год назад +1

    ERROR: syntax error at or near "INTO"
    LINE 2: INSERT INTO customer.please solve sir

  • @abhaytripathi3643
    @abhaytripathi3643 Год назад +2

    Hii Rishabh,
    Appreciate for your efforts and thanks to upload this tutorial.
    I have one doubt please clear that:
    While I was trying to use ALTER to ADD COLUMN column_name then I was getting error,
    I think here have to declare the data type as well after column_name,
    Kindly correct me if I am doing wrong

  • @mrramanjee
    @mrramanjee Год назад +1

    you effort is appreciated I had done the music library project it was very helpful, as I am taking class from your initial video then in this video I am getting error as follow , while inserting command it is giving error column "custid" of relation "customer" does not exist
    SQL state: 42703
    Character: 23
    kindly guide me

    • @RishabhMishraOfficial
      @RishabhMishraOfficial  Год назад +1

      this could be due to spelling error or the column doesn't exit in the table

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

    table m value insert krne k lye new table bana padegi kya sir...

  • @msvishalmsvishal213
    @msvishalmsvishal213 4 месяца назад +1

    ❤❤❤

  • @AIWALABRO
    @AIWALABRO Год назад +2

    alter table persons
    alter column city char;
    previously city has datatype varchar(255)
    but i wnat to change the city datatype how i can changed out to this?
    how i will used this command.

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

      You can use ALTER Table command, eg:
      ALTER TABLE
      ALTER COLUMN TYPE new_data_type;

  • @user-mi6ct8mo8j
    @user-mi6ct8mo8j 8 месяцев назад +1

    Getting error again and again while using
    ALTER TABLE "Customer"
    ALTER COLUMN "Email" char(10);

  • @kavitasahu6989
    @kavitasahu6989 2 месяца назад +1

    Video is really good. But please explain each line with less Speed. I watched this video by changing the speed

  • @viralyadav3858
    @viralyadav3858 8 месяцев назад

    hi rishabh, please suggest me if i want to do data science /data analysis course offline then which institute is good with low fees please provide me the name? thank you.

  • @madhav1616
    @madhav1616 6 месяцев назад +2

    I have installed postgreysql 16 and insert synatx maine use kiya yahi vala but har baare error aa rha hai
    Relation customer does not exist
    Ye show ho rha hai bas
    Aur ha maine pinned comment already padh ke apply kr diya hai
    Aur ek to aapne hume video me syntax daalte hue bhi nhi dikaya usse aur confusions create ho rhi. Hai unko jo phli baar sikh rhe hai

    • @flashkamunna3071
      @flashkamunna3071 5 месяцев назад

      KCH HUA KYA , M PICHLE 5 GHNTE SE YHI ATKA HU AAGE NHI BD PA RHA

    • @madhav1616
      @madhav1616 5 месяцев назад +1

      ​@@flashkamunna3071bhai dusre channel ki koi ek do video dekh lo smjh aa jayega aaram se

    • @adityamishra5616
      @adityamishra5616 Месяц назад

      Solve hua ?

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

    while update i am getting errror invalid input ..I tried putting all commas etc still facing issue.. Video is not clear about this

  • @Zerocoment-zh6bq
    @Zerocoment-zh6bq Месяц назад +1

    👍

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

    Can u show an example of alter table command ?

  • @mr.bittoo1017
    @mr.bittoo1017 Месяц назад

    I am trying to apply insert into but error showing column dataid of relation Data doesn't exist please solve

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

    Why it shows me duplicate rows after Delete the row no. 3, in result remaining rows are two times.

  • @SuhaanNajmi
    @SuhaanNajmi 2 месяца назад

    Hi, While I am trying to insert the values Id, Name. It does not work. My question is why in your customer table showint the value custID and custname. In your previous video you use only Id, name not custId and custName.

  • @rjspidy5176
    @rjspidy5176 10 месяцев назад +4

    Mujhe alter column krne m error aa rha h

  • @niravprajapati5519
    @niravprajapati5519 Год назад +1

    hi rishabh is it necessary to assign primary key with out it wont load the table ?

  • @anilnegi6326
    @anilnegi6326 Месяц назад +1

    Good Evening bhai..
    INSERT INTO me
    ERROR: column "name" of relation "customer" does not exist
    LINE 2: (id, Name, Age, City, Income)
    ^
    SQL state: 42703
    Character: 27
    ye sb show ho raha ha but already exist ha ye sb column.
    It will really🙏🙏 helpful if you can clear the doubts.

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

    sir, syntax of postgresql is little diffrent than it

  • @Footballmoment1209
    @Footballmoment1209 9 часов назад

    create table bond
    (
    "id" int8 primary key,
    "name" varchar (50) not null,
    "age" int not null,
    "city" char(50),
    "salary" numeric
    );
    select * from bond
    limit 4
    insert into bond
    ("id","name",age,city,salary)
    values
    (1, 'sam', 26, 'delhi', 9000),
    (2, 'ram', 19, 'bangalore', 12000),
    (3, 'pam', 31, 'mumbai', 8500),
    (4, 'jam', 42, 'pune', 10500);
    update bond
    set "name" = 'bomb', age = 25
    where "id" = 4;
    delete from bond
    where "id" = 3;
    alter table bond
    add column navin integer;
    alter table bond
    alter column salary set data type integer;
    alter table bond
    drop column navin;

  • @Mansi25._
    @Mansi25._ 9 месяцев назад

    Hello Rishabh Sir, when im inserting values why does it show error when im putting them in double quotes while its working fine with single quotes??

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

    Sir delete queery use krke hum table ko delete nhi kr skte drop ke place pr delete nhi use kr skte

  • @adityavaidya6251
    @adityavaidya6251 12 дней назад

    What is the difference between numeric and integer please tell

  • @mohdarsh546
    @mohdarsh546 Год назад +1

    sir hum ne table create kiya hai badme usme or details add kar na hai kya qurey use karte hai

  • @akumar15599
    @akumar15599 Год назад +1

    When i make a table and adding values
    Into the table but query is not running . It is showing syntax error at or near VALUES

  • @ashishbharti2526
    @ashishbharti2526 10 месяцев назад +1

    Hi Rishab, I am facing an error: column "age " Of relation "customer" Does not exist
    Line 2: (custid, custname, age salary)
    SQL state: 42307
    Character: 37 please clarify this as I am unable to insert values in tables

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

      Pls check pinned comment

    • @VipulNegi9
      @VipulNegi9 8 месяцев назад

      Its wrong for adding column- alter table table_name add column_name
      For drop - alter table table_name drop column columm_name

  • @user-yh8te3jf8s
    @user-yh8te3jf8s 8 месяцев назад

    How to update values from different row and different column in a single query

  • @shrutimishra8478
    @shrutimishra8478 6 месяцев назад +1

    hi sir,
    I got an error in line 1 customer.
    says relation customer does not exist.
    how to solve this error!

  • @abhishekdubey8566
    @abhishekdubey8566 9 месяцев назад

    Hi Rishabh, i understood the delete command, how do we write command if we have to delete multiple rows?

    • @RishabhMishraOfficial
      @RishabhMishraOfficial  9 месяцев назад

      Use where clause to give condition for multiple rows. Delete function Deletes all the rows for the specified id or primary col value

  • @abhijeetTiwari05
    @abhijeetTiwari05 4 месяца назад

    Bhai agar data excel se lena rahega to kaise lenge? Base data ke liye

  • @monuthakur7649
    @monuthakur7649 7 месяцев назад +1

    1:15
    When I insert all the details I get an error
    Column "custid" of relation "customer" does not exist
    Please help me

  • @user-px9my6gw3m
    @user-px9my6gw3m Год назад +2

    Hi Rishabh,
    I am getting below error. Can you please help?
    ERROR: column "custid" of relation "customer" does not exist
    LINE 2: (CustID, CustName, Age, City, Salary)
    ^
    SQL state: 42703
    Character: 23

  • @sonamphogat21
    @sonamphogat21 Год назад +1

    I'm unable to run modify column command syntax is as it is but error shows in modify word

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

      Share your sql query here

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

      Query:
      Alter table customer_table
      Alter column address char(255) ;
      ERROR: syntax error at or near "char"
      Line 2: alter column address char(255) ;
      ^
      SQL state: 42601
      Character: 49