OOP PROJECT
  • Sqlit3 Installation
  • Database Class
    • টেবিল তৈরী করা
  • Student Information Crud
    • insert student
    • get all student
    • get student(id)
    • Update Student
    • Delete Student
    • Complete Code
Powered by GitBook
On this page
  1. Student Information Crud

Update Student

Previousget student(id)NextDelete Student

Last updated 2 years ago

 def update_student(self,id):
   self.db.cursor.execute('UPDATE students set name =?,email=?,phone=? WHERE id = ?',(self.name,self.email,self.phone,id))
   self.db.connection.commit()

# Create Student Object
student = Student()
# Modify Student Object Property Value
student.name= 'olee ahmmed'
student.email = 'ashik.techs@gmail.com'
student.phone = '01953-6649667'
student.update_student(1)