Update Query


  1. In the following query how many rows will be updated?
    UPDATE person
    SET Lname=’Gupta’,
    Fname=’Ajit’,
    WHERE person_id < 10;
    /* person_id is a primary key */











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    0-9


  1. In the following query how many rows will be updated?
    UPDATE Employee
    SET Lname=’Gupta’,
    Fname = ’Ajit’,
    WHERE Emp_id = 101;
    /* person_id is a primary key */











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    Single row



  1. Which statement is used to delete an existing row from the table?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    DELETE


  1. Which statement is used for updating existing information in the table?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    UPDATE



  1. Which keyword in the UPDATE statement is used to assign values to columns?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    The ‘UPDATE’ statement in MySQL has its own syntax. The ‘SET’ keyword is followed by an assignment list which indicates the set of columns whose value needs to be updated with a specified value.