Execute the Update query in SQLite and chane the Nitin name as a Amol


Q.53 Execute the Update query in SQLite and chane the Nitin name as a Amol. Ans:-

  • Database Name: MyCircle, Table Name: Friends
  • |ID|Name    |Age|
    | 1 |Nitin    | 21 |
    | 2 |Kaka    | 22 |
    | 3 |Ganesh| 20 |
    | 4 |Sama    | 18 |
  • syntax: update tableName set FiledName=? where FieldName=?
    or
  • syntax: update tableName set assignment [, assignment]”[where expressionn];
  • Query: update Friends set Name=’Amol’ where ID=1;
  • Output:
    |ID|Name    |Age|
    | 1 |Amol    | 21 |
    | 2 |Kaka    | 22 |
    | 3 |Ganesh| 20 |
    | 4 |Sama    | 18 |

Kalavati Technologies Pvt Ltd